Skip to content

Commit

Permalink
#1129: disable use of XDG_RUNTIME_DIR since we can't rely on it
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12297 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 31, 2016
1 parent a469f61 commit 468a393
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/xpra/platform/xposix/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import site


USE_RUNTIME_DIR = os.environ.get("XPRA_USE_RUNTIME_DIR", "0")=="1"


def do_get_install_prefix():
#special case for "user" installations, ie:
#$HOME/.local/lib/python2.7/site-packages/xpra/platform/paths.py
Expand Down Expand Up @@ -58,6 +61,8 @@ def do_get_script_bin_dirs():


def _get_xpra_runtime_dir():
if not USE_RUNTIME_DIR:
return None
runtime_dir = os.environ.get("XDG_RUNTIME_DIR")
if runtime_dir:
#replace uid with the string "$UID"
Expand Down

0 comments on commit 468a393

Please sign in to comment.