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.
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 SESSION= ubuntu- touch TYPE=mir ubuntu- touch DESKTOP= ubuntu- touch
DESKTOP_
XDG_SESSION_
GDMSESSION=
XDG_SESSION_
Given those values, base::nix: :DesktopEnviron ment GetDesktopEnvir onment( ) 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.