Could someone add code for Ubuntu? The problem is that in su_gnome(), amdxdg-su looks for gnomesu and xsu, but these don't exist. It looks simple enough to look for gksudo instead/as well. HOWEVER detectDE() inspects $GNOME_DESKTOP_SESSION_ID, the value of which is "this-is-deprecated". Clearly a better fix would change detectDE() as well to use some other way of detecting if it's running under GNOME.
Patch attached for Kubuntu.
Could someone add code for Ubuntu? The problem is that in su_gnome(), amdxdg-su looks for gnomesu and xsu, but these don't exist. It looks simple enough to look for gksudo instead/as well. HOWEVER detectDE() inspects $GNOME_ DESKTOP_ SESSION_ ID, the value of which is "this-is- deprecated" . Clearly a better fix would change detectDE() as well to use some other way of detecting if it's running under GNOME.