Added command action wiring

This commit is contained in:
2025-11-30 17:38:19 -06:00
parent d3a732ed4d
commit 5ef8bf30e8
2 changed files with 13 additions and 1 deletions

View File

@@ -113,7 +113,12 @@ class CategoryWidget(Gtk.Grid):
def _do_exec(self, widget, _command): def _do_exec(self, widget, _command):
command = _command.split("%")[0] command = _command.split("%")[0]
subprocess.Popen(command.split(), start_new_session=True, stdout=None, stderr=None) subprocess.Popen(
command.split(),
start_new_session = True,
stdout = None,
stderr = None
)
def clear_children(self, app_list: [] = []): def clear_children(self, app_list: [] = []):
children = self.get_children() children = self.get_children()

View File

@@ -82,5 +82,12 @@ class SearchCommandWidget(Gtk.SearchEntry):
def _handle_enter(self, widget): def _handle_enter(self, widget):
if self.mode != "/c": return if self.mode != "/c": return
subprocess.Popen(
self.request.split(),
start_new_session = True,
stdout = None,
stderr = None
)
def query_all_categories(self): def query_all_categories(self):
event_system.emit("query-all-categories", (self.request,)) event_system.emit("query-all-categories", (self.request,))