Improve Linux snap App Indicator compatibility by coercing desktop to Unity

(Special thanks to Martin at Ubuntu!)
This commit is contained in:
Ben Gotow 2018-05-24 11:47:24 -07:00
parent d337d9d407
commit 96fb3a99bf

View file

@ -36,11 +36,15 @@ apps:
mailspring:
command: desktop-launch $SNAP/usr/share/mailspring/mailspring
desktop: usr/share/applications/mailspring.desktop
environment:
# Correct the TMPDIR path for Chromium Framework/Electron to
# ensure libappindicator has readable resources.
environment:
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