Correctly detect GNOME when DESKTOP_SESSION is `gnome-xorg` and not only `gnome`

This commit is contained in:
Antonín Kříž 2023-11-13 15:48:04 +01:00 committed by GitHub
parent ebfec7aade
commit bd54140f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ def desktop_environment():
env = 'lxde'
elif 'plasma' in desktop_session or desktop_session.startswith('kubuntu') or os.environ.get('KDE_FULL_SESSION') == 'true':
env = 'kde'
elif os.environ.get('GNOME_DESKTOP_SESSION_ID'):
elif os.environ.get('GNOME_DESKTOP_SESSION_ID') or desktop_session == 'gnome-xorg:
env = 'gnome'
elif desktop_session.startswith('ubuntu'):
env = 'unity'