Skip to content

Commit 1e8ea6f

Browse files
committed
Reintroduce execute_command dbus hook
Command now always creates a new tab to execute the command in
1 parent 8979ed8 commit 1e8ea6f

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

guake/dbusiface.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ def reset_colors_current(self):
153153
self.guake.reset_terminal_custom_colors(current_terminal=True)
154154
self.guake.set_colors_from_settings_on_page(current_terminal_only=True)
155155

156+
@dbus.service.method(DBUS_NAME, in_signature="s")
157+
def execute_command(self, command):
158+
self.guake.add_tab()
159+
self.guake.execute_command(command)
160+
156161
@dbus.service.method(DBUS_NAME, in_signature="i", out_signature="s")
157162
def get_tab_name(self, tab_index=0):
158163
return self.guake.get_notebook().get_tab_text_index(tab_index)

guake/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def main():
253253
dest="command",
254254
action="store",
255255
default="",
256-
help=_("Execute an arbitrary command in the selected tab."),
256+
help=_("Execute an arbitrary command in a new tab."),
257257
)
258258

259259
parser.add_option(
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
release_summary: >
2+
-e command reinstated and now only runs in new tabs
3+
4+
security:
5+
- |
6+
guake with the -e flag now always opens a new tab to run commands in

0 commit comments

Comments
 (0)