[winswitch] Improvements to the xpra_Xdummy script for Arch Linux

Antoine Martin antoine at nagafix.co.uk
Mon Oct 26 04:01:19 GMT 2015


On 26/10/15 07:20, Antony Lee wrote:
> I can't seem to register on Trac so I'll post this here:
>
> On Arch Linux, Xorg is a wrapper script
>
> basedir=/usr/lib/xorg-server
> if [ -x "$basedir"/Xorg.wrap ]; then
>         exec "$basedir"/Xorg.wrap "$@"
> else
>         exec "$basedir"/Xorg "$@"
> fi
>
> neither /usr/lib/xorg-server/Xorg{,.wrap} are currently taken into account
> by the xpra_Xdummy script; I'd suggest adding a few lines similar to the
> special-casing done for Fedora.
Thanks, applied in:
http://xpra.org/trac/changeset/11009
If anyone knows of other distros using other unusual paths, please
forward them.
> Also, in my case I find that I need to append -configdir /some/dummy/path
> to the invocation of xpra_Xdummy (in the xvfb line of xpra.conf) to get rid
> of the following fatal error at startup:
> (EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
Are you sure this is needed? Is your Xorg a wrapper? Is it suid?
All the ones I tested mention:
$ /usr/libexec/Xorg -h |& grep -A 1 -i configdir
-configdir dir         specify a configuration directory, relative to the
                       xorg.conf.d search path, only root can use absolute

Using an absolute path as a non-root user doesn't seem to break anything
on the few distros I tested, but there's always a risk.

I was hoping this would also fix the same error that Ubuntu is having
("Cannot open /dev/tty0"), but it made no difference there.
And I have no arch linux to test on.

Cheers
Antoine
>
> Best,
> Antony
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users





More information about the shifter-users mailing list