xpra icon
Bug tracker and wiki

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1418 closed enhancement (worksforme)

cmd line arg "--configdir"

Reported by: Jens H. Goebbert Owned by: Jens H. Goebbert
Priority: minor Milestone:
Component: core Version: trunk
Keywords: config Cc:

Description

It would be great to have an command line argument "--configdir" (like it can be found for example in Xorg) to Xpra.
Currently the config directory "conf.d" is fixed to the platform specific paths, which is less flexible.

This would allow to switch between different complex configurations quickly.
Not only directly on the command line, but also inside a wrapper script the configuration could be switched.

(I would like to automatically chose by a wrapper script between different configurations for different login nodes, which share the same filesystem.)

Change History (4)

comment:1 Changed 3 years ago by Antoine Martin

Owner: changed from Antoine Martin to Jens H. Goebbert

You can use $HOME/.xpra/conf.d/.
(and this can override any global system settings)

Isn't that enough?

comment:2 in reply to:  1 Changed 3 years ago by Jens H. Goebbert

$HOME/.xpra/conf.d/ is not always enough.

If you have multiple login nodes for a multiuser cluster
with different configurations, but sharing the same $HOME,
a wrapper script can detect what machine you are logged into
and switch the config directory for Xpra depending on that.
In this case it is more a replacement for /etc/xpra/conf.d

In the first place, I search for a solution to set
exec-wrapper "env -i bash -l -c vglrun --" on some nodes and
exec-wrapper "env -i bash -l -c --" on others.

comment:3 Changed 3 years ago by Jens H. Goebbert

Resolution: worksforme
Status: newclosed

Instead of --confdir one can set XPRA_SYSCONF_DIR or XPRA_USER_CONF_DIR.

comment:4 in reply to:  3 Changed 3 years ago by Jens H. Goebbert

Replying to Jens H. Goebbert:

Instead of --confdir one can set XPRA_SYSCONF_DIR or XPRA_USER_CONF_DIR.

XPRA_SYSCONF_DIR does not work,
XPRA_SYSCONF_DIRS works.

Note: See TracTickets for help on using tickets.