When enabling autostart on boot, Keepass will not minimise or close into the tray. Instead, it goes into the dock.
Closing and re-opening fixes this.
Keepass should minimise to tray
Keepass minimises to dock.
I am using Ubuntu Groovy and installed keepassxc via apt-get using deb http://ppa.launchpad.net/phoerious/keepassxc/ubuntu groovy main
KeePassXC - Version 2.6.2
Revision: e9b9582
Qt 5.14.2
Debugging mode is disabled.
Operating system: Ubuntu 20.10
CPU architecture: x86_64
Kernel: linux 5.8.0-26-generic
Enabled extensions:
Cryptographic libraries:
libgcrypt 1.8.5
Operating System: Linux
Desktop Env: Gnome
Windowing System: X11
I can confirm the same behavior on Gentoo with KDE too.
Given the linked issue similar to BirdTray, this is not on us. You need to delay the start of keepassxc until after gnome gets going. The application is starting before the tray is available.
Some extra information: I was able to work around this issue by delaying the startup. I followed this tutorial: https://www.linuxuprising.com/2020/11/how-to-launch-startup-applications-with.html
nano ~/.config/autostart/org.keepassxc.KeePassXC.desktop
X-GNOME-Autostart-Delay=3
This will delay the startup by 3 seconds. I personally have found 2 seconds to be fine and the delay is unnoticeable, it looks like it is in the tray by the time my desktop is ready to use. I chose to put 3 seconds in the above example to be safe.
Nice! We can add that to the startup deployment