- To check the current desktop session name:
It will return the name of the current desktop session. e.g. ubuntu-2d (aka. unity 3D), gnome-shell, gnome-classic.echo $DESKTOP_SESSION
- To check the default desktop session:
It shows the default session: e.g.cat /etc/lightdm/lightdm.conf
[SeatDefaults] user-session=ubuntu greeter-session=unity-greeter
- To list the available session definitions in /usr/share/xsessions/:
ls /usr/share/xsessions/
No comments:
Post a Comment