system: debian buster (Linux version 4.14.0-3-amd64 (debian-kernel@lists.debian.org) (gcc version 7.2.0 (Debian 7.2.0-19)) #1 (closed) SMP Debian 4.14.13-1 (2018-01-14))
desktop: XFCE
riseupvpn version: 0.10.4
findings:
install from snap file works (had to use --classic and --dangerous flags)
it was not initially clear how to open the app
no instructions given after successful install
no desktop launcher file to use via XFCE's application launcher
no icon, unable to search for riseupVPN from inside of the Snap applicatoin
no riseup-vpn command on PATH
not possible to run systemctl riseup-vpn
could run one time with riseup-vpn.launcher but:
received some warning output in the logs (about using /tmp dir)
subsequent invocations of same command from different shell did not work (because /snap/bin was not in $PATH)
after putting snap/bin in $PATH (or just sourcing ~/.bashrc), i can run without issue
am curious if there is a way to run as a background service?
run process:
here is what worked/didn't work the first time:
# <installing. (didn't have snap cli.)>aguestuser$ sudo apt install snapd# <snip>aguestuser$ wget https://downloads.leap.se/RiseupVPN/linux/riseup-vpn_0.10.4_amd64.snap# <snip>aguestuser$ sudo snap install*.snap --dangerous--classic# <snip># <nothing after install told me how i could launch. no desktop icon added. so i tried `which`>aguestuser$ which riseup-vpn. riseup-vpn.bitmaskd riseup-vpn.launcher riseup-vpn.bitmask-systray riseup-vpn.openvpnaguestuser$ riseup-vpn.launcher/snap/riseup-vpn/x2/lib/python2.7/site-packages/leap/common/events/client.py:40: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed. Install tornado itself to use zmq with the tornado IOLoop. from zmq.eventloop import zmqstreamtrying to launch: /snap/bin/riseup-vpn.bitmask-systray[+] launching bitmaskd...(bitmask-systray.git:11249): libappindicator-WARNING **: Using '/tmp' paths in SNAP environment will lead to unreadable resources# <snip>(bitmask-systray.git:11249): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed^P^A2018/03/19 13:11:44 on2018/03/19 13:11:48 status: starting(bitmask-systray.git:11249): libappindicator-WARNING **: Using '/tmp' paths in SNAP environment will lead to unreadable resources# <snip>(bitmask-systray.git:11249): libappindicator-WARNING **: Using '/tmp' paths in SNAP environment will lead to unreadable resources2018/03/19 13:11:52 status: on
I was able to start the VPN, and receive the yellow circle -> green checkmark confirmation
but then, after closing out and trying to restart in a new shell, i can no longer find riseup-vpn.launcher or any other way to start the app:
aguestuser$ riseup-vpn.launcher -bash: riseup-vpn.launcher: command not found aguestuser$ which riseup-vpn aguestuser$ snap start riseup-vpn aguestuser$ sudo snap start riseup-vpn error: snap "riseup-vpn" has no services
it was because snap had modified my ~/.bashrc to put riseup-vpn on my path, but my old shell was not picking up on this:
I will see what are the differences between the snap in debian and ubuntu; it's surprising to me that the version of snap in debian doesn't add the desktop entry.
i have but i guess now not so relevant after long time but i wanna add this, i once had some issue on $PATH variable change, i did use same system as aguestuser and Debian 10 XFCE, so i too think issue is bit related to that $PATH, and i confirm most if not all the steps he made.
although this was the first report, it was tracked here: riseup_vpn#31 (closed)
the last snap builds in the stable channel (rev 60) should have fixed this. confirmation welcome.
And to answer your question: the output of sudo snap info riseup-vpn is:
name: riseup-vpnsummary: RiseupVPN, anonymous VPN. Powered by Bitmask.publisher: LEAP Encryption Access Project (leapsnaps)contact: https://0xacab.org/leap/bitmask-vpnlicense: unsetdescription: | RiseupVPN is an easy, fast, and secure VPN service from riseup.net. RiseupVPN does not require a user account, keep logs, or track you in any way. The service is paid for entirely by donations from users like you.commands: - riseup-vpn.bitmask-root - riseup-vpn.launcher - riseup-vpn.openvpnsnap-id: kcdab1evtjtNRe7Mrm0Qd57fioCuDBUVtracking: stablerefresh-date: 9 days ago, at 12:40 CESTchannels: stable: 0.19.6-3-g2160bb2 2019-07-15 (152) 49MB classic candidate: 0.19.6-3-g2160bb2 2019-07-10 (152) 49MB classic beta: 0.19.6-68-g30cfd9d 2019-09-15 (154) 50MB classic edge: 0.19.6-68-g30cfd9d 2019-09-15 (154) 50MB classicinstalled: 0.19.6-3-g2160bb2 (152) 49MB classic
You should be able to find RiseupVPN in the menu and launch it from it. If you don't find it there it means that there is a bug in the installer and the desktop file was not installed properly.
That bug is still there, on gnome, debian buster, no desktop file
$ ls /snap/riseup-vpn/current/snap/gui/icon.svg riseup-vpn.pngfind /snap/riseup-vpn/ -name "*desktop" /snap/riseup-vpn/159/meta/gui/launcher.desktop/snap/riseup-vpn/159/snap/local/riseup-vpn.desktop/snap/riseup-vpn/159/usr/share/applications/riseup-vpn.desktop$ snap info riseup-vpnname: riseup-vpnsummary: RiseupVPN, anonymous VPN. Powered by Bitmask.publisher: LEAP Encryption Access Project (leapsnaps)contact: https://0xacab.org/leap/bitmask-vpnlicense: unsetdescription: | RiseupVPN is an easy, fast, and secure VPN service from riseup.net. RiseupVPN does not require a user account, keep logs, or track you in any way. The service is paid for entirely by donations from users like you.commands: - riseup-vpn.bitmask-root - riseup-vpn.launcher - riseup-vpn.openvpnsnap-id: kcdab1evtjtNRe7Mrm0Qd57fioCuDBUVtracking: stablerefresh-date: today at 09:15 CETchannels: stable: 0.19.11 2019-12-17 (159) 45MB classic candidate: 0.19.11 2019-12-17 (159) 45MB classic beta: 0.19.11 2019-12-17 (159) 45MB classic edge: 0.19.11 2019-12-17 (159) 45MB classicinstalled: 0.19.11 (159) 45MB classic
ouch, sorry about that. I re-did most of the snapcraft file, and the desktop file should get installed as per the documentation, but I only tested in a couple of ubuntus.
my gut feeling is to blame snap/debian relation. I'm unsure about whether to add the hacky workaround we did put in place some months ago. for the moment being I think we can recommend using the debian package for debian, but when possible I'll investigate what's going on for the desktop file not being properly installed by snap. any hints about what differs from ubuntu are appreciated.
The desktop icon is also there after installing gnome-shell-extension-appindicator and logging out and back in again.
For gnome to have the appindicator one needs to install gnome-shell-extension-appindicator and enable it (ie, with gnome-tweak-tool:
Maybe the package makes indeed more sense for Debian, gnome-software-plugin-snap is not installed by default either, so the instructions on https://riseup.net/en/vpn/linux#snap-installation can't be followed (no mention of RiseupVPN inside software center).