fix ubuntu unity version detection

This commit is contained in:
Eric Le Lay 2020-04-16 10:52:20 +02:00
parent 0e8b256eda
commit f1c3522864
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ def main():
desktop_session = os.environ.get('DESKTOP_SESSION', 'unknown').lower()
xdg_current_desktop = os.environ.get('XDG_CURRENT_DESKTOP', 'unknown').lower()
gpodder.ui.unity = (desktop_session in ('ubuntu', 'ubuntu-2d')
and xdg_current_desktop == 'unity')
gpodder.ui.unity = (desktop_session in ('ubuntu', 'ubuntu-2d', 'unity')
and xdg_current_desktop in ('unity', 'unity:unity7:ubuntu'))
from gpodder import log
log.setup(options.verbose)