#Default applications not working

23 messages · Page 1 of 1 (latest)

mortal urchin
#

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?

#

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.

quasi swan
#

@mortal urchin pacman -Q feh

mortal urchin
#

❯ 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

ionic stirrup
#

I posted solution to this few days ago

#

There is three possible sol to this -

#
  1. check weather you have kservice5 installed or not by pacman -Q | grep 'kservice5'
#

If not present then install it

#
  1. 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
#
  1. 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

quasi swan
#

@ionic stirrup is that from chat gpt?

ionic stirrup
ionic stirrup
quasi swan
ionic stirrup
#

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.

ionic stirrup
mortal urchin
#

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!