diff options
author | Robert Tari <robert@tari.in> | 2022-09-13 17:11:16 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2022-09-13 17:11:16 +0200 |
commit | 9ab79eebfcb66e73cd8aa9b82a42a5e34f422aa5 (patch) | |
tree | 2e32940c6e2894e5ea95844760828d708c6fad64 | |
parent | 4f23916d57d00fb5ad6a409c50ee85c6bc64f1d5 (diff) | |
parent | e268112107df9c5938037ca338b9cf6c83603025 (diff) | |
download | ayatana-settings-9ab79eebfcb66e73cd8aa9b82a42a5e34f422aa5.tar.gz ayatana-settings-9ab79eebfcb66e73cd8aa9b82a42a5e34f422aa5.tar.bz2 ayatana-settings-9ab79eebfcb66e73cd8aa9b82a42a5e34f422aa5.zip |
Merge branch 'sunweaver-pr/tolerate-nonset-XDG-CURRENT-DESKTOP'
Attributes GH PR #19: https://github.com/AyatanaIndicators/ayatana-settings/pull/19
-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): |