displaymanager: Detect the KDE Plasma (5 and 4) and GNOME desktop environments.

Add them to the front of the list of desktop environments because users
are more likely to expect those as the default if they have them
installed.
This commit is contained in:
Kevin Kofler 2014-11-07 02:26:13 +01:00
parent 4990b8e3f8
commit e365864c05

View File

@ -27,6 +27,9 @@ import subprocess
DesktopEnvironment = collections.namedtuple('DesktopEnvironment', ['executable', 'desktop_file'])
desktop_environments = [
DesktopEnvironment('/usr/bin/startkde', 'plasma'), # KDE Plasma 5
DesktopEnvironment('/usr/bin/startkde', 'kde-plasma'), # KDE Plasma 4
DesktopEnvironment('/usr/bin/gnome-session', 'gnome'),
DesktopEnvironment('/usr/bin/startxfce4', 'xfce'),
DesktopEnvironment('/usr/bin/cinnamon-session', 'cinnamon-session'),
DesktopEnvironment('/usr/bin/mate-session', 'mate'),