Skip to content

Commit

Permalink
make it easier to run in a prefixed installation
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 21, 2021
1 parent 0dfc185 commit 590fe65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xpra/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_Xdummy_confdir():
base = "${HOME}/.xpra"
return base+"/xorg.conf.d/$PID"

def get_Xdummy_command(xorg_cmd="Xorg", log_dir="${XPRA_SESSION_DIR}", xorg_conf="/etc/xpra/xorg.conf"):
def get_Xdummy_command(xorg_cmd="Xorg", log_dir="${XPRA_SESSION_DIR}", xorg_conf="${XORG_CONFIG_PREFIX}/etc/xpra/xorg.conf"):
cmd = [xorg_cmd] #ie: ["Xorg"] or ["xpra_Xdummy"] or ["./install/bin/xpra_Xdummy"]
cmd += [
"-noreset", "-novtswitch",
Expand All @@ -106,7 +106,7 @@ def get_Xdummy_command(xorg_cmd="Xorg", log_dir="${XPRA_SESSION_DIR}", xorg_conf
#must be specified with some Xorg versions (ie: arch linux)
#this directory can store xorg config files, it does not need to be created:
"-configdir", '"%s"' % get_Xdummy_confdir(),
"-config", xorg_conf
"-config", '"%s"' % xorg_conf,
]
return cmd

Expand Down Expand Up @@ -165,7 +165,7 @@ def Xorg_suid_check():
use_wrapper = True
else:
use_wrapper = False
xorg_conf = os.path.join(conf_dir, "xorg.conf")
xorg_conf = "${XORG_CONFIG_PREFIX}"+os.path.join(conf_dir, "xorg.conf")
if use_wrapper:
xorg_cmd = "xpra_Xdummy"
else:
Expand Down

0 comments on commit 590fe65

Please sign in to comment.