x.org server fails to start when $TMPDIR is set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xorg-server (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When the Xmir server is run on a device or desktop under Unity 8 it fails to start with the following error messages.
[xkb] Can't rename /run/user/
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
(EE) Fatal server error:
(EE) Failed to activate core devices.(EE)
We traced the problem down to the fact that the $TMPDIR is set in the environment and points to a confined location in the /run filesystem, and x.org uses the hardcoded path of /tmp which is a different filesystem. A Ubuntu-specific patch to the x.org server attempts to rename the .xkm file across filesystems (which is not allowed).
To avoid this error the Ubuntu-speicific patch to cache the xkb file should also patch the hardcoded /tmp to use $TMPDUR if it is set.
tags: | added: xmir |
Status changed to 'Confirmed' because the bug affects multiple users.