summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2018-10-29 22:30:21 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2018-10-29 22:37:25 +0100
commit32c9657ed90563a7f2988496382818436d5e012e (patch)
treef983f0721ec6f3619082c79d1dde68ff363bcc45
parent038a6c5790883275279ccf4fb158aee641d78ce1 (diff)
[bug] revert setting of TMPDIR0.18.10
setting TMPDIR attempted to end the noisy error message about using TMP producing non readable messages. however, this produces invisible icons in bionic. See https://0xacab.org/leap/riseup_vpn/issues/44
-rw-r--r--systray.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/systray.go b/systray.go
index 996c925..4e4e3d5 100644
--- a/systray.go
+++ b/systray.go
@@ -48,7 +48,9 @@ type gatewayTray struct {
}
func run(bm bitmask.Bitmask, conf *systrayConfig, notify *notificator, as autostart) {
- os.Setenv("TMPDIR", "/var/tmp")
+ // XXX this removes the snap error message, but produces an invisible icon.
+ // https://0xacab.org/leap/riseup_vpn/issues/44
+ // os.Setenv("TMPDIR", "/var/tmp")
bt := bmTray{bm: bm, conf: conf, notify: notify, autostart: as}
systray.Run(bt.onReady, bt.onExit)
}