App status icons not showing in panel when started from autostart

The status icons for KeepassXC and Nextcloud sync client are not showing up any more in the Gnome Panel in the top right corner.
I think this started happening after the upgrade to Gnome 3.38.

I have KeepassXC and the Nextcloud Sync Client installed and configured to start at login using the respective app’s settings.

Corresponding .desktop files have been created in ~/.config/autostart/ by the apps - see e.g. org.keepassxc.KeePassXC.desktop at the end.

The apps actually start on boot/login but the status icons are missing, which makes it hard to access the apps.

If I close the apps, and start them manually the app status icons show up in the Gnome panel and work as expected.

I have the following Gnome extensions enabled:

  • User Themes
  • Removable Drive Menu
  • Pamac Updates Indicator (which seems to autostart and work just fine)
  • KStatusNotifierItem/AppIndicator Support

Any help / hints are welcome.

org.keepassxc.KeePassXC.desktop content:

[Desktop Entry]
Name=KeePassXC
GenericName=Passwortmanager
Exec=/usr/bin/keepassxc
TryExec=/usr/bin/keepassxc
Icon=keepassxc
StartupWMClass=keepassxc
StartupNotify=true
Terminal=false
Type=Application
Version=1.0true
Categories=Utility;Security;Qt;
MimeType=application/x-keepass2;
X-GNOME-Autostart-enabled=true