This is a workaround to make xSwipe work also under Ubuntu 15.04 (which is the version I tested) and probably some other versions.
This is the new flow:
If gnome-session works properly, it's used to guess the session name (and the workaround is not used).
If gnome-session doesn't work, the variable DESKTOP_SESSION is used to guess the session name.
If both gnome-session and DESKTOP_SESSION don't work, the session is interpreted as 'other'.
This is a workaround to make xSwipe work also under Ubuntu 15.04 (which is the version I tested) and probably some other versions.
This is the new flow: If gnome-session works properly, it's used to guess the session name (and the workaround is not used). If gnome-session doesn't work, the variable DESKTOP_SESSION is used to guess the session name. If both gnome-session and DESKTOP_SESSION don't work, the session is interpreted as 'other'.