Skip to content

Commit

Permalink
#228 tell ubuntu to not mess up our children's menus
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@2364 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 26, 2012
1 parent 3415921 commit 3f4b76d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,11 +436,13 @@ def kill_xvfb():
if opts.exit_with_children:
assert opts.children
if opts.children:
env = os.environ.copy()
env["UBUNTU_MENUPROXY"] = ""
children_pids = set()
for child_cmd in opts.children:
if child_cmd:
try:
children_pids.add(subprocess.Popen(child_cmd, shell=True, close_fds=True).pid)
children_pids.add(subprocess.Popen(child_cmd, env=env, shell=True, close_fds=True).pid)
except OSError, e:
sys.stderr.write("Error spawning child '%s': %s\n"
% (child_cmd, e))
Expand Down

0 comments on commit 3f4b76d

Please sign in to comment.