http://gambaswiki.org/bugtracker/edit?object=BUG.773&from=L21haW4-
Comment #2 by Jesus GUARDON: I'm afraid it does not work here. Environment variables return no useful information: $DESKTOP_SESSION returns literally "default.desktop" when issued in terminal. $XDG_MENU_PREFIX returns an empty string. So, if you would see my changes to report-ng.sh, you will see I'm using $XDG_DATA_DIRS variable [0] that seems to contain a directory having the string xfce4. I don't know if it is reliable at all, specially when one have more than one desktop environment installed, but what if you leave this check as the last one, before all others have failed? [0] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html Regards ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user