-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't launch protonvpn-app from script #82
Comments
I am having a similar issue. However Im trying to start the app at boot using a systemd service. I got the app to work on my debian machine, but am struggling with fedora. I used the same scripts for both. "/etc/systemd/system/proton-vpn.service" (even if I change from fork to simple nothing changes)[Unit]Description=ProtonVPN Client [Service] [Install] "/etc/default/protonvpn"XDG_RUNTIME_DIR=/run/user/1000DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus "journalctl -u proton-vpn.service"Started proton-vpn.service - ProtonVPN Client. Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.590836+00:00 | proton.vpn.core.connection:459 | INFO | CONN:STATE_CHANGED | Disconnected (initial state) Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.592173+00:00 | proton.vpn.app.gtk.app:57 | INFO | APP:PROCESS_START | self= Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.645333+00:00 | proton.vpn.app.gtk.widgets.main.tray_indicator:45 | INFO | AyanaAppIndicator3 not found: Namespa> Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.648199+00:00 | proton.vpn.core.refresher.vpn_data_refresher:167 | INFO | APP.VPN_DATA_REFRESHER:ENABLE | VPN da> Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.648347+00:00 | proton.vpn.core.refresher.vpn_data_refresher:175 | INFO | Next client config refresh scheduled i> Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.648433+00:00 | proton.vpn.core.refresher.vpn_data_refresher:184 | INFO | Next server list refresh scheduled in > Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.648981+00:00 | proton.vpn.core.refresher.vpn_data_refresher:193 | INFO | Next certificate refresh scheduled in > Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.649072+00:00 | proton.vpn.core.refresher.vpn_data_refresher:202 | INFO | Next feature flags refresh scheduled i> Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.649397+00:00 | proton.vpn.session.utils:107 | INFO | API:REQUEST | '/vpn/v1/loads' Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.667475+00:00 | dbus.proxies:407 | ERROR | Introspect error on :1.16:/org/freedesktop/login1/seat/auto: dbus.exc> Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.667962+00:00 | proton.vpn.app.gtk.utils.exception_handler:257 | CRITICAL | APP:CRASH | Unexpected error. Dec 30 22:51:41 apollo protonvpn-app[11557]: Traceback (most recent call last): Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/widgets/vpn/vpn_widget.py", line 183, in _on_refresher_enabled Dec 30 22:51:41 apollo protonvpn-app[11557]: self.display(self._controller.user_tier, self._controller.server_list) Dec 30 22:51:41 apollo protonvpn-app[11557]: ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/widgets/vpn/vpn_widget.py", line 205, in display Dec 30 22:51:41 apollo protonvpn-app[11557]: self._controller.reconnector.enable() Dec 30 22:51:41 apollo protonvpn-app[11557]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/services/reconnector/reconnector.py", line 93, in enable Dec 30 22:51:41 apollo protonvpn-app[11557]: self._session_monitor.enable() Dec 30 22:51:41 apollo protonvpn-app[11557]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/services/reconnector/session_monitor.py", line 61, in enable Dec 30 22:51:41 apollo protonvpn-app[11557]: self._setup() Dec 30 22:51:41 apollo protonvpn-app[11557]: ~~~~~~~~~~~^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib/python3.13/site-packages/proton/vpn/app/gtk/services/reconnector/session_monitor.py", line 102, in _setup Dec 30 22:51:41 apollo protonvpn-app[11557]: seat_properties = seat_auto_properties_proxy.GetAll(SEAT_INTERFACE) Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib64/python3.13/site-packages/dbus/proxies.py", line 72, in __call__ Dec 30 22:51:41 apollo protonvpn-app[11557]: return self._proxy_method(*args, **keywords) Dec 30 22:51:41 apollo protonvpn-app[11557]: ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib64/python3.13/site-packages/dbus/proxies.py", line 141, in __call__ Dec 30 22:51:41 apollo protonvpn-app[11557]: return self._connection.call_blocking(self._named_service, Dec 30 22:51:41 apollo protonvpn-app[11557]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: self._object_path, Dec 30 22:51:41 apollo protonvpn-app[11557]: ^^^^^^^^^^^^^^^^^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: ...<3 lines>... Dec 30 22:51:41 apollo protonvpn-app[11557]: args, Dec 30 22:51:41 apollo protonvpn-app[11557]: ^^^^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: **keywords) Dec 30 22:51:41 apollo protonvpn-app[11557]: ^^^^^^^^^^^ Dec 30 22:51:41 apollo protonvpn-app[11557]: File "/usr/lib64/python3.13/site-packages/dbus/connection.py", line 634, in call_blocking Dec 30 22:51:41 apollo protonvpn-app[11557]: reply_message = self.send_message_with_reply_and_block( Dec 30 22:51:41 apollo protonvpn-app[11557]: message, timeout) Dec 30 22:51:41 apollo protonvpn-app[11557]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/login1/seat/auto'. Dec 30 22:51:41 apollo protonvpn-app[11557]: 2024-12-30T21:51:41.677092+00:00 | proton.vpn.app.gtk.services.reconnector.reconnector:174 | INFO | Network connectivity was detect> Dec 30 22:51:43 apollo protonvpn-app[11557]: 2024-12-30T21:51:43.097837+00:00 | proton.vpn.session.utils:111 | INFO | API:RESPONSE | '/vpn/v1/loads' Dec 30 22:51:43 apollo protonvpn-app[11557]: 2024-12-30T21:51:43.309372+00:00 | proton.vpn.core.refresher.server_list_refresher:76 | INFO | Next server list refresh scheduled i> Dec 30 22:51:51 apollo systemd[1]: proton-vpn.service: Deactivated successfully.dbus.exceptions.DBusException: org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/login1/seat/auto'.The protonvpn-app starts, but with an error Something went wrong. An unexpected error occurred. It says constantly Loading Appon the interface. But I can say that with the code both applications get started (though for Fedora not at boot and it doesnt work). |
Please complete the following checklist (by adding [x]):
Environment
Issue
Hello,
For context, i have been trying to execute the
protonvpn-app
from a script linked to a.desktop
file, to automatize the deactivation of my custom DNS when I launch the ProtonVPN, and activation when I close it.Using the
protonvpn-app
command from a normal terminal works fine, but when trying in the terminal opened by Ubuntu from the.desktop
file, I get this error trace :What surprises me is that the
XDG_RUNTIME_DIR
is well set in the windows where I get the error, and has the same value as in any other windows, being/run/user/1000
.Also, when using
env
to print all the environnement variables, and trying adiff
between the two outputs, the only differences where not meaningful ones, meaningLESSCLOSE
,LESSOPEN
,LS_COLORS
, and theGNOME_TERMINAL_SCREEN
that is obviously different.Additional informations
If of any use, here is the
.desktop
file :Thanks !
The text was updated successfully, but these errors were encountered: