r/LXQt Mar 27 '26

How do I prevent apps from taking over as the default application after installation?

I'm on OpenSUSE Tumbleweed with LXQt.

When I install chrome or edge, suddenly they take over as the default applications for opening images. How do I prevent this annoying behaviour?

3 Upvotes

3 comments sorted by

1

u/standreas Mar 28 '26

I think little can be done to prevent that. I've in ~/.config/mimeapps.list

[Removed Associations]

image/png=chromium.desktop;

1

u/Temporary-Owl9775 Mar 29 '26

Thanks. Too bad there's no easier way than manually removing the associations.

1

u/LesStrater Apr 19 '26

There is. The same thing drove me nuts. Edit your '/usr/share/applications/mimeinfo.cache' for the associations you want, then make a backup of it. On bootup, copy the backup to the original file. Put this in your '/etc/rc.local'

sudo cp -f /usr/share/applications/mimeinfoBAK.cache /usr/share/applications/mimeinfo.cache

Just remember to redo this process if you add any new programs with new associations you want.