[winswitch] Location of the run-xpra script

Antoine Martin antoine at nagafix.co.uk
Tue Jul 13 18:24:36 BST 2021


On 13/07/2021 13:35, Dušan Vejnovič via shifter-users wrote:
> Hello.
> 
> I have a problem. When I run xpra as a user demo1, the run-xpra script
> is created in the folder /tmp/xpra.
Why is that?
Are you using su to run xpra perhaps?

> Only user demo1 has rights on that
> folder. However, if I run xpra as a user demo2, the run-xpra script is
> not created in the folder /tmp/xpra because the user demo2 has no rights
> on that folder. How could I change the location of the run-xpra script
> to make it in the demo2 user's home folder, e.g. in the ~/.xpra folder.
Why do you care about having this run-xpra script?
It is rarely used nowadays and xpra should work fine without it.

> Some more information:
> - xpra running on Debian 10
> - running xpra version 4.2.1
> - all default settings are unchanged
> - an example of how to run xpra
> xpra start:10000 --bind-tcp=0.0.0.0:10000 --tcp-auth=none
> --start-new-commands=yes --start="xterm"
The run-xpra script is normally created in $XDG_RUNTIME_DIR/xpra

You should make sure that $XDG_RUNTIME_DIR exists and is writable when
starting xpra for your users.
A number of features will use this directory as base for locating and
storing files.

Alternatively, you could override XPRA_SCRIPT_BIN_DIRS for each user.
(but I really don't recommend that)

Cheers,
Antoine


> 
> 
> Thanks for the help.
> -- Dušan



More information about the shifter-users mailing list