To choose which type of application indicators to use for the program, I need to determine whether I am on the Unity desktop or not. Is it possible? Is it possible when I do not have access to the environment?
It looks like there is also XDG_CURRENT_DESKTOP:
rubiojr@rubiojr-VirtualBox:~$ echo $XDG_CURRENT_DESKTOP Unity
See https://askubuntu.com/questions/70296/is-there-an-environment-variable-that-is-set-for-unity
On Ubuntu, you can use the following commands:
Just shell execute ps aux | grep unity, -plattform linux. ARM.
ps aux | grep unity
11.04 Ubuntu , -2d-, -2d- . , linux.
, :
env | grep -i unity
XDG_CURRENT_DESKTOP=Unity, , . , , desktop, unity.
XDG_CURRENT_DESKTOP=Unity
desktop
unity