On Mon, 4 Nov 2019 at 08:11, Dan Hitt <dan.h...@gmail.com> wrote:
>
> I still would like a programmatic/command-line way of detecting what the 
> desktop.

Try this command, shown here with the output I get on my system
which uses the LXDE desktop. Whatever output you get will depend
on whatever environment variables your desktop sets.

$ env | grep -i DESKTOP
DESKTOP_SESSION=LXDE
XDG_SESSION_DESKTOP=lightdm-xsession
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_CURRENT_DESKTOP=LXDE
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0

Reply via email to