No preview when choosing icons in KeepassXC

My OS is Kubuntu 25.10 & I’m using the Ubuntu version of Keepass Version 2.7.10+dfsg1-1.

When I try to add a custom icon to some of my entries, my photos do not show a preview using “icon view” like they do everywhere else. This seems to only happen in Keepass. The toolbar icons also aren’t very visible. Is there a way to change this, or no?

I’ve also tried using the Flatpak & Snap versions as well and they all have the exact same behavior. I can change the theme in the app and that allows me to see the toolbar better, but it does not effect the “preview” of my pictures when trying to add custom icons. I’m aware that there is a “preview” button in the toolbar, which I have tried in all 3 of the apps & none of them show any change after pressing it.

In the past, when I was using Kubuntu 25.04, the flatpak version would have this problem, but the Snap & Ubuntu version did not.

Edit: Added more context

It looks like this is using its own built-in file picker instance as well as its own theming.

In the main Keepassxc window: View>>Theme>> Platform Native, or whichever one you like.

One of the buttons on the toolbar does toggle previews. In your dark theme, it is the black square on the right, but you will see it more clearly once you change the theme.

Yeah, I’ve clicked on the “Preview” button in the toolbar, but it doesn’t change anything. Changing the theme from Auto to Light does make the toolbar show up better when I click to add my own Icons, but has no effect on the Preview.

Ok, then the keepassxc version may have a bug. It definitely works in previous versions in Kubuntu LTS and other Ubuntu 24.04 based systems for me. The flatpak (as recommended by the project) works properly for this as well.

In 25.10, the ‘stock’ package (which is actually an imported Debian one) does not have previews, nor does using Keepassxc’s PPA for a more recent version. Flatpak is fine.

Maybe it doesn’t like the Qt or Frameworks version in 25.10? Seeing as the current debs work identically in both Plasma 5 (Kubuntu LTS) and KDE neon (and its current Qt, KDE frameworks etc). The snap and flatpak will each have their own internal stuff for this.

I’ve reported this to keepass and this was a reply from a maintainer -

I also reported this on Kubuntu forums but no feedback yet. Flatpak, the repository, Ubuntu version, and Snap all do the same thing. Hopefully, there will be some kind of fix soon. I use the custom icon feature a lot and it’s annoying having to look for a picture in the file manager first to get the file name and then locate it inside Keepass. The only other way to do it is open each file with a viewer to see what it looks like first which is completely out of the question.

That’s because I saw it here first :smiley:

I am not sure that his statement is necessarily correct, or there is more involved here. There are noticeable differences between the file choosers here on my extremely bone stock Kubuntu 25.10, with Keepassxc set to use the 'native; theming option. This is probably from it using Qt5 maybe? I wonder if there is a way to make Qt5/KF5 apps use the KDE dialogs? or why does it work in Plasma 6.5 but not 6,4? In any case, I’ve gone down a few rabbit holes with no outlet :frowning:

This is Keepassxc 2.7.11 from its PPA, next to Okular.
Note that the file picker Okular calls has no issue with previews

And fwiw, the Flatpak installed here has zero issues with the file chooser showing image previews.


Note it uses the same file picker styling as the native Okular.

Now, if this is a bug in the Ubuntu package, it would need to be reported on Launchpad (ubuntu-bug keepassxc is the easiest way to start that)

I had this same problem with the Flatpak version when I would go to Discover, uninstall the PPA version, then still using Discover download the Flatpak version. It would still do the same exact thing.

What I finally figured out was even though I was hitting “install” under the Flatpak version, it was still giving me the PPA version.

This had me very confused and I guess it’s a problem with Discover. Only after I used Konsole to purge the PPA install and all it’s files/data would Discover finally give me the Flatpak version. Now, I don’t have that issue with the file manager.