Description of problem: - KeePassXC does not display a tray icon Version-Release number of selected component (if applicable): - keepassxc-2.3.3-1.fc28 How reproducible: - Always Steps to Reproduce: 1. Install the "(K)StatusNotifierItem/AppIndicator Support" extension for GNOME Shell: https://extensions.gnome.org/extension/615/appindicator-support/ 2. dnf install keepassxc 3. Launch KeePassXC 4. Navigate to Tools -> Settings -> General -> Basic Settings 5. At the bottom, enable "Show a system tray icon" 6. Click OK Actual results: - No tray icon appears Expected results: - A tray icon appears in the top right of the monitor Additional info: - The tray icon *does* appear and work when using the upstream AppImage from https://keepassxc.org/download/, so this must be some discrepancy between how the AppImage is built and how the Fedora RPM is built. - Upstream GitHub repo at https://github.com/keepassxreboot/keepassxc - Upstream AppImage build script at https://github.com/keepassxreboot/keepassxc/blob/develop/AppImage-Recipe.sh
Hi Dan, could you please provide screenshots of both working and not working situation? I am not a GNOME user so it would be helpful to give a look to pictures
Created attachment 1458771 [details] Screenshot showing the tray icon being present and absent Sure! Screenshot attached. Thank you for the quick response. Things are currently a bit weird with tray icons in Gnome. They've been removed from the platform as of Gnome 3.28, but Canonical is maintaining an extension (linked in the steps to reproduce) that effectively restores support via a different protocol. Apparently a lot of upstream libraries incorrectly detect which methods are supported (legacy tray icon vs. KStatusNotifier vs AppIndicator). For example, Electron apps like Slack need to be launched with XDG_CURRENT_ENVIRONMENT=Unity to work with the extension, otherwise it tries and fails to use a legacy GTKStatusIcon. Further discussion at https://github.com/ubuntu/gnome-shell-extension-appindicator/issues/127 ...which is all to say, this is probably a really weird interaction between the environment and the upstream libraries.
This might be caused by the QGnomePlatform platform plugin that Fedora ships. You can try uninstalling the qgnomeplatform package, or setting QT_QPA_PLATFORMTHEME=kde (or something else other than "gnome"), though I'm not sure whether the platform theme actually needs to exist for the environment variable to work (the KDE one is in the plasma-integration package).
Removing qgnomeplatform fixes this (at the cost of platform integration). Installing plasma-integration and setting QT_QPA_PLATFORMTHEME=kde does change the visual theme of the application, but does not fix the missing tray icon. ...so it sounds like the bug is somewhere in qgnomeplatform, and not necessarily in the theme code.
Weird observation: with QT_QPA_PLATFORM=kde, keepassxc behaves as if it has a tray icon (closing the window does not terminate the process), but there is no actual tray icon visible on the screen. (Changing the theme and observing this behavior *does* require that plasma-integration is installed. Without it installed, the process terminates as soon as the main window is closed.)
Moving this over to the qgnomeplatform component, and adding its owner (jgrulich) to CC.
qgnomeplatform-0.4-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a5657e9770
qgnomeplatform-0.4-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-61048a9a6e
Alright, I can confirm the update from https://bugzilla.redhat.com/show_bug.cgi?id=1601033#c8 fixes the problem
qgnomeplatform-0.4-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a5657e9770
qgnomeplatform-0.4-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-61048a9a6e
qgnomeplatform-0.4-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.