Comment 4 for bug 1647895

Revision history for this message
Olivier Tilloy (osomon) wrote :

I can’t install the terminal app on my frieza at the moment, but on my arale I’m seeing the following values for those environment variables:

XDG_CURRENT_DESKTOP=Unity
DESKTOP_SESSION=ubuntu-touch
XDG_SESSION_TYPE=mir
GDMSESSION=ubuntu-touch
XDG_SESSION_DESKTOP=ubuntu-touch

Given those values, base::nix::DesktopEnvironment GetDesktopEnvironment() will return DESKTOP_ENVIRONMENT_UNITY, which explains why oxide instantiates the FDO implementation of PowerSaveBlocker.

It appears lightdm is responsible for setting XDG_CURRENT_DESKTOP, and it sets it to the value of the "X-LightDM-DesktopName" key in /usr/share/lightdm/sessions/ubuntu-touch.desktop.

I assume changing that value to e.g. "Unity8" would have lots of undesirable side effects, so we probably need to patch oxide to be cleverer at guessing the desktop environment.