aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xayatana-settings5
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):