vorta
vorta copied to clipboard
Vorta opening main window on startup even when this is not selected in Misc options
Describe the bug Vorta opening main window on startup even when this is not selected in Misc options
To Reproduce In the Misc menu: Automatically start Vorta at login is selected Open main window on startup is not selected Main window still opens when I login
Environment (please complete the following information):
-
OS: Operating System: openSUSE Tumbleweed 20220711 KDE Plasma Version: 5.25.2 KDE Frameworks Version: 5.96.0 Qt Version: 5.15.5 Kernel Version: 5.18.9-2-default (64-bit) Graphics Platform: X11
-
Vorta version: 0.8.7
-
Installed from: openSUSE Tumbleweed repository
Additional context Default .json config that I use is attached (converted to a text file for upload)
Will try the FlatPak version and see if it works as expected.
KDE Plasma restarts applicatons that were running on shutdown. Since vorta runs in the background registered as a GUI app it is also restarted by KDE although vorta is not registered as a autostart app/script.
The flatpak version works OK in this regard so I'll stick with that.
@real-yfprojects, < KDE Plasma restarts applicatons that were running on shutdown> I'm not 100% sure what you mean here, if I have for example Chrome running when I shut down the PC, Chrome doesn't restart when I start the PC up again.
I'm not 100% sure what you mean here, if I have for example Chrome running when I shut down the PC, Chrome doesn't restart when I start the PC up again.
I always assumed that is an issue of Chrome. When using other apps (like Firefox or a non-browser app) you can see a different behaviour.
Same problem on XFCE (Xubuntu 22.10).
Can't reproduce with latest release. (on macOS)
Do you see a vorta.desktop file in ~/.config/autostart/?
I'm using the flatpak now so not seeing the issue. I'll leave it to others (@Weuxel ?) to comment, if not the issue can probably be closed.
Hello, yes, the file is present.
What happens if you start vorta from the terminal after quitting any running instance?
vorta
Can you check the database file located at ~/.local/share/Vorta/settings.db? The table settings model should have a row foreground holding 0 in the value column. You can use sqlitebrowser for that.
norman@serenity:~$ ps -ef | grep vorta
norman 34028 3039 0 13:02 pts/0 00:00:00 grep --color=auto vorta
norman@serenity:~$ vorta
2023-02-11 13:02:13,460 - vorta.i18n - DEBUG - Loading translation succeeded for ['de', 'de-DE', 'de-Latn-DE'].
2023-02-11 13:02:13,538 - vorta.views.source_tab - DEBUG - Added item number 0 from 1
2023-02-11 13:02:13,628 - root - INFO - Using NetworkManagerMonitor NetworkStatusMonitor implementation.
2023-02-11 13:02:13,671 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2023-02-11 13:02:13,671 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2023-02-11 13:02:13,684 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg --version
2023-02-11 13:02:13,748 - vorta.borg.borg_job - WARNING - /usr/lib/python3/dist-packages/trio/_core/_multierror.py:511: RuntimeWarning: You seem to already have a custom sys.excepthook handler installed. I'll skip installing Trio's custom handler, but this means MultiErrors will not show full tracebacks.
2023-02-11 13:02:13,748 - vorta.borg.borg_job - WARNING - warnings.warn(
2023-02-11 13:02:13,935 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2023-02-11 13:02:13,936 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2023-02-11 13:02:13,936 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2023-02-11 13:02:13,940 - vorta.scheduler - INFO - Setting timer for profile 1
2023-02-11 13:02:13,942 - vorta.scheduler - DEBUG - Scheduling next run for 2023-02-11 15:14:47.634820
Vorta starts, the tray icon appears and the main window does not appear.
Yes, the 0 is present.
4 | foreground | 0 | | Open main window on startup | Startup | checkbox
Ok, this is how vorta should behave. Then I have no idea why the main window does appear when you login. You could try disabling automatically start vorta at login and see whether vorta appears in the systemtray anyway.
automatic start at login is disabled, the file in .config/autostart/ is gone and the entry in XFCE autostart is also gone. Yet the vorta system tray icon appears on login.
How and by what mechanism i do not know.
AFAIK xfce doesn't restore applications that were running when logging out. Did you have a look at other autostart locations? Also the parent of the vorta process might give information on who starts vorta. Otherwise I can't help you. I don't think there is anything vorta can do about it.