Comment 33 for bug 1589215

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

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(":")
  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.