diff options
-rwxr-xr-x | ayatana-settings | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ayatana-settings b/ayatana-settings index a8ea538..7daae0a 100755 --- a/ayatana-settings +++ b/ayatana-settings @@ -48,7 +48,10 @@ class AyatanaSettings: self.bSystemd = isSystemd() self.bInit = False - self.sDesktop = os.environ['XDG_CURRENT_DESKTOP'] + try: + self.sDesktop = os.environ['XDG_CURRENT_DESKTOP'] + except KeyError: + self.sDesktop = "" # Session if Gio.SettingsSchemaSource.get_default().lookup('org.ayatana.indicator.session', False): |