Skip to content

Commit

Permalink
Reintroduce execute_command dbus hook
Browse files Browse the repository at this point in the history
Command now always creates a new tab to execute the command in
  • Loading branch information
Davidy22 committed Jun 12, 2022
1 parent 8979ed8 commit 1e8ea6f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions guake/dbusiface.py
Expand Up @@ -153,6 +153,11 @@ def reset_colors_current(self):
self.guake.reset_terminal_custom_colors(current_terminal=True)
self.guake.set_colors_from_settings_on_page(current_terminal_only=True)

@dbus.service.method(DBUS_NAME, in_signature="s")
def execute_command(self, command):
self.guake.add_tab()
self.guake.execute_command(command)

@dbus.service.method(DBUS_NAME, in_signature="i", out_signature="s")
def get_tab_name(self, tab_index=0):
return self.guake.get_notebook().get_tab_text_index(tab_index)
Expand Down
2 changes: 1 addition & 1 deletion guake/main.py
Expand Up @@ -253,7 +253,7 @@ def main():
dest="command",
action="store",
default="",
help=_("Execute an arbitrary command in the selected tab."),
help=_("Execute an arbitrary command in a new tab."),
)

parser.add_option(
Expand Down
6 changes: 6 additions & 0 deletions releasenotes/notes/execute_in_new_tab-6161bba1822b644c.yaml
@@ -0,0 +1,6 @@
release_summary: >
-e command reinstated and now only runs in new tabs
security:
- |
guake with the -e flag now always opens a new tab to run commands in

0 comments on commit 1e8ea6f

Please sign in to comment.