Skip to content

Commit

Permalink
fixup r17862: if we don't use a shell, then we have to parse the stri…
Browse files Browse the repository at this point in the history
…ng using shell syntax

git-svn-id: https://xpra.org/svn/Xpra/trunk@17863 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 4, 2018
1 parent dfa5f58 commit a8f425b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xpra/server/server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,8 @@ def get_child_env(self):
def get_full_child_command(self, cmd, use_wrapper=True):
#make sure we have it as a list:
if type(cmd) not in (list, tuple):
cmd = [str(cmd)]
import shlex
cmd = shlex.split(str(cmd))
if not use_wrapper or not self.exec_wrapper:
return cmd
return self.exec_wrapper + cmd
Expand Down

0 comments on commit a8f425b

Please sign in to comment.