Without researching this further, I think what needs to happen is splitting the value of aCurrentDesktop on colons, and iterate until we find a known DE.
In pseudo-code:
array aCurrentDesktops = aCurrentDesktop.split(":")
for (de in aCurrentDesktops) {
if (de.equalsIgnoreAsciiCase("unity")) {
ret = DESKTOP_UNITY;
break;
} else if (de.equalsIgnoreAsciiCase("gnome")) {
ret = DESKTOP_GNOME;
break;
} else if …
}
I can give it a try next week if you don't beat me to it.
Hi Xisco,
Without researching this further, I think what needs to happen is splitting the value of aCurrentDesktop on colons, and iterate until we find a known DE.
In pseudo-code:
array aCurrentDesktops = aCurrentDesktop .split( ":") eAsciiCase( "unity" )) { eAsciiCase( "gnome" )) {
for (de in aCurrentDesktops) {
if (de.equalsIgnor
ret = DESKTOP_UNITY;
break;
} else if (de.equalsIgnor
ret = DESKTOP_GNOME;
break;
} else if …
}
I can give it a try next week if you don't beat me to it.