From 96fb3a99bfc6caeb225aab1ea73a656c769b235b Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 24 May 2018 11:47:24 -0700 Subject: [PATCH] Improve Linux snap App Indicator compatibility by coercing desktop to Unity (Special thanks to Martin at Ubuntu!) --- snap/snapcraft.template.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.template.yaml b/snap/snapcraft.template.yaml index cde584808..9990b45d5 100644 --- a/snap/snapcraft.template.yaml +++ b/snap/snapcraft.template.yaml @@ -36,11 +36,15 @@ apps: mailspring: command: desktop-launch $SNAP/usr/share/mailspring/mailspring desktop: usr/share/applications/mailspring.desktop - # Correct the TMPDIR path for Chromium Framework/Electron to - # ensure libappindicator has readable resources. environment: + # Correct the TMPDIR path for Chromium Framework/Electron to + # ensure libappindicator has readable resources. HOME: $SNAP_USER_COMMON TMPDIR: $XDG_RUNTIME_DIR + # Coerce XDG_CURRENT_DESKTOP to Unity so that App Indicators + # are used and do not fall back to Notification Area applets + # or disappear completely. + XDG_CURRENT_DESKTOP: Unity plugs: - avahi-observe - browser-support