Lately whenever I try to open a file by double clicking it in Dolphin, it asks me what program I want to use--see attached image. Selecting a program and checking the "remember" box opens the file correctly, but the application is not remembered the next time I try to open it. My ~/.config/mimeapps.list has the correct default applications, but they are not being used. Does anyone know what might be causing this?
#Default applications not working
23 messages · Page 1 of 1 (latest)
On line 26 of mimeapps.list you can see that the default should be feh, but it asks me what I want to use every time.
@mortal urchin pacman -Q feh
❯ pacman -Q feh
feh 3.10.2-1
not just a feh issue, its all my default apps
pdfs should open in firefox but don't, mp4 should open in vlc but don't, etc
I posted solution to this few days ago
There is three possible sol to this -
- check weather you have kservice5 installed or not by pacman -Q | grep 'kservice5'
If not present then install it
- see after running dolphin in cmmd line, if you get this type of error (Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.) then the possible sol is this = sudo ln -s /etc/xdg/menus/plasma-applications.menu /etc/xdg/menus/applications.menu
- Run this -
kbuildsycoca6 --noincremental
If it does print this output -> "applications.menu" not found in QList("~/.config/menus", "/etc/xdg/menus"), you will need to get this file.
To get the applications.menu file, install this package
sudo pacman -Sy archlinux-xdg-menu
Then run this command to generate the file
sudo update-desktop-database
As the file name differs you need to change the file name
cd /etc/xdg/menus
ls
expected output -> "arch-applications.menu"
sudo mv arch-applications.menu applications.menu
Then run again this command and it should work fine
kbuildsycoca6 --noincremental
@ionic stirrup is that from chat gpt?
So clearly you judged directly without putting effort to reading it, huh
This is the mssg I copied from previous same issue that I gave sol to
don't ever sy always syu not syy or sy* without the u unless you are in the iso read this https://gist.github.com/vodik/5660494
I know that bro
You know what y flag do, you just know don't ever use this that bla bla, but why it is for then
sudo pacman -Sy archlinux-xdg-menu, -Sy flag is used for synchronizes the package databases. If there is no any conflicts or dependencies requiring a system-wide update, using pacman -Sy followed by the installation or upgrade of specific packages can be acceptable.
This is dolphin issue. not image viewer issue
when would this error occur? right after running dolphin?
oh i see im getting a KSycoca error so im probably in the 3rd case
@ionic stirrup yep, solution 3 worked perfectly! thanks a ton for your help!