![]() KDE Developer ![]()
|
Hi. I have a problem with file associations in Dolphin. I'm pretty sure I caused it myself by using two different versions of a Gentoo system with the same user name in my home folder.I have subsequently eliminated the second Gentoo instance (I made a Gentoo system that used systemd instead of openrc, just for practice), but the problem persists. For a while I was in fact using "firefox-bin" on the systemd version of Gentoo, to save some compile time. I'd appreciate some help in understanding why this is happening.
If I'm logged in as "david" on my Gentoo system (my default login), when I right click a file with filename extension .htm, Dolphin offers me the default choice to open the file with Mozilla Firefox. If I select that choice, I get an error message from Dolphin: "Could not find the program /usr/bin/firefox-bin". I do not have this problem when I execute Dolphin as the root user. I think the default configuration stuff for root is in the /root directory, while the "david" defaults are set up in /home/david somewhere. Anyway, I created a symlink in /usr/bin named firefox-bin, and pointed it to /usr/bin/firefox. That works ... the file opens ok in firefox, and I get no error message. But it seems like a bandaid solution. I'd rather fix it the right way. Any idea which configuration file needs to be patched? I have already examined ~/.config/dolphinrc, and that doesn't look like it's any help. I'm searching the entire Gentoo file system for files containing the character string "firefox-bin" right now ... that will probably take quite a while. More later. Thanks! Update: After searching a bit with "kfind", I noticed a file in ~/.local/share/applications/ named "userapp-Firefox-92MDR0.desktop". This file contained a line "Exec=/usr/bin/firefox-bin %u". If I modify this line to say "Exec=/usr/bin/firefox %u" Dolphin behaves as expected when I say to open xxx.htm with Firefox. If I remove this file from the ~/.local/... directory, Dolphin doesn't even offer to open .htm files with Firefox. It wants to open the file with Kleopatra instead. But if I choose Firefox from the list of all applications, it works correctly. While hunting around I also ran across the file "firefox-bin" in /usr/lib64/firefox/. I did install firefox-bin on Gentoo a long time ago. I guess "emerge --deselect www-client/firefox-bin" didn't actually remove the object program from my system. This all seems very strange and a little bit hinky, to me, but I guess I "solved" this problem. Sorry to bother y'all |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]