xpra icon
Bug tracker and wiki

Ticket #1394: xdg-runtime-dir-ubuntu1404.patch

File xdg-runtime-dir-ubuntu1404.patch, 806 bytes (added by Antoine Martin, 3 years ago)

don't use XDG_RUNTIME_DIR for run-xpra script on Ubuntu 14.04

  • xpra/platform/xposix/paths.py

     
    5959def do_get_script_bin_dirs():
    6060    #versions before 0.17 only had "~/.xpra/run-xpra"
    6161    script_bin_dirs = []
    62     runtime_dir = _get_xpra_runtime_dir()
    63     if runtime_dir:
    64         script_bin_dirs.append(runtime_dir)
     62    from xpra.os_util import getUbuntuVersion
     63    if getUbuntuVersion()!=[14,4]:
     64        #XDG_RUNTIME_DIR is mounted noexec on Ubuntu 14.04,
     65        #we cannot use it
     66        runtime_dir = _get_xpra_runtime_dir()
     67        if runtime_dir:
     68            script_bin_dirs.append(runtime_dir)
    6569    script_bin_dirs.append("~/.xpra")
    6670    return script_bin_dirs
    6771