vorta icon indicating copy to clipboard operation
vorta copied to clipboard

Vorta opening main window on startup even when this is not selected in Misc options

Open RobDean69 opened this issue 3 years ago • 4 comments
trafficstars

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)

Default.txt

RobDean69 avatar Jul 13 '22 07:07 RobDean69

Will try the FlatPak version and see if it works as expected.

RobDean69 avatar Jul 13 '22 07:07 RobDean69

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.

real-yfprojects avatar Jul 13 '22 10:07 real-yfprojects

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.

RobDean69 avatar Jul 13 '22 21:07 RobDean69

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.

real-yfprojects avatar Jul 14 '22 16:07 real-yfprojects

Same problem on XFCE (Xubuntu 22.10).

Weuxel avatar Jan 24 '23 07:01 Weuxel

Can't reproduce with latest release. (on macOS)

m3nu avatar Jan 24 '23 08:01 m3nu

Do you see a vorta.desktop file in ~/.config/autostart/?

real-yfprojects avatar Feb 09 '23 18:02 real-yfprojects

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.

RobDean69 avatar Feb 09 '23 20:02 RobDean69

Hello, yes, the file is present.

Weuxel avatar Feb 10 '23 05:02 Weuxel

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.

real-yfprojects avatar Feb 11 '23 11:02 real-yfprojects

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

Weuxel avatar Feb 11 '23 12:02 Weuxel

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.

real-yfprojects avatar Feb 11 '23 20:02 real-yfprojects

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.

Weuxel avatar Feb 12 '23 09:02 Weuxel

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.

real-yfprojects avatar Feb 12 '23 16:02 real-yfprojects