Skip to content

Commit

Permalink
#1961: strip file / url arguments from command
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20913 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 2, 2018
1 parent 3ccdf5d commit 80e6788
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/client/gtk_base/gtk_tray_menu_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# later version. See the file COPYING for details.

import os
import re

from xpra.gtk_common.gobject_compat import import_gtk, import_glib, import_pixbufloader
gtk = import_gtk()
glib = import_glib()
Expand Down Expand Up @@ -1607,6 +1609,7 @@ def make_applaunch_menu_item(self, app_name, command_props):
app_menu_item = self.handshake_menuitem(app_name.decode("utf-8"), image=image)
def app_launch(*_args):
command = command_props.get(b"command")
command = re.sub('\%[fFuU]', '', command)
log("command=%s", command)
if command:
self.client.send_start_command(app_name, command, False, self.client.server_sharing)
Expand Down

0 comments on commit 80e6788

Please sign in to comment.