Skip to content

Commit

Permalink
#1614 since we allow the user to override XDG_RUNTIME_DIR, make sure …
Browse files Browse the repository at this point in the history
…we don't clobber it with values from pam

git-svn-id: https://xpra.org/svn/Xpra/trunk@16669 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Aug 8, 2017
1 parent 2a3a8e2 commit dc7a3ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ def run_server(error_cb, opts, mode, xpra_file, extra_args, desktop_display=None
if not xrd:
xrd = os.environ.get("XDG_RUNTIME_DIR")
xrd = create_runtime_dir(xrd, uid, gid)
if xrd:
#this may override the value we get from pam
#with the value supplied by the user:
protected_env["XDG_RUNTIME_DIR"] = xrd

if opts.pidfile:
write_pidfile(opts.pidfile, uid, gid)
Expand Down

0 comments on commit dc7a3ee

Please sign in to comment.