Added command action wiring
This commit is contained in:
@@ -113,7 +113,12 @@ class CategoryWidget(Gtk.Grid):
|
||||
|
||||
def _do_exec(self, widget, _command):
|
||||
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: [] = []):
|
||||
children = self.get_children()
|
||||
|
||||
@@ -82,5 +82,12 @@ class SearchCommandWidget(Gtk.SearchEntry):
|
||||
def _handle_enter(self, widget):
|
||||
if self.mode != "/c": return
|
||||
|
||||
subprocess.Popen(
|
||||
self.request.split(),
|
||||
start_new_session = True,
|
||||
stdout = None,
|
||||
stderr = None
|
||||
)
|
||||
|
||||
def query_all_categories(self):
|
||||
event_system.emit("query-all-categories", (self.request,))
|
||||
|
||||
Reference in New Issue
Block a user