I need switch script in between lubuntu, ubuntu, and kubuntu. How can I know which platform the script is running in?Because uname/lsb_release never show different in those 3 releasesLubuntu$ uname -aLinux 3.16.0-33-generic #44-Ubuntu SMP Thu Mar 12 12:19:35 UTC 2015 x86_64 x86_64 x86_64 GNU/LinuxLubuntu$ lsb_release -aNo LSB modules are available.Distributor ID: UbuntuDescription:    Ubuntu 14.10Release:    14.10Codename:   utopicLubuntu$ cat /etc/*releaseDISTRIB_ID=UbuntuDISTRIB_RELEASE=14.10DISTRIB_CODENAME=utopicDISTRIB_DESCRIPTION=Ubuntu 14.10NAME=UbuntuVERSION=14.10 (Utopic Unicorn)ID=ubuntuID_LIKE=debianPRETTY_NAME=Ubuntu 14.10VERSION_ID=14.10HOME_URL=http://www.ubuntu.com/SUPPORT_URL=http://help.ubuntu.com/BUG_REPORT_URL=http://bugs.launchpad.net/ubuntu/
How to know which platform I am using in lubuntu, ubuntu or kubuntu
shell;ubuntu;lubuntu
env | grep XDG_CURRENT_DESKTOP returns the desktop environment currently in use. In my case, I see LXDE which is the desktop environment Lubuntu currently uses. echo $DESKTOP_SESSION returns Lubuntu.