Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce execute_command dbus hook #2057

Merged
merged 1 commit into from
Jun 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions guake/dbusiface.py
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,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
Original file line number Diff line number Diff line change
@@ -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