anyrun icon indicating copy to clipboard operation
anyrun copied to clipboard

Desktop files that are located in ~/.local/share/applications cannot be correctly run

Open Enovale opened this issue 2 years ago • 2 comments

If I try to run any application where there is an override .desktop file in ~/.local/share/applications (KDE puts desktop files here that have overridden values set by the local user for example) Anyrun will throw this error: Error running desktop entry: No such file or directory (os error 2) If I remove the local user desktop file it runs from the system installed one just fine.

Enovale avatar Oct 19 '23 16:10 Enovale

User specific desktop files work fine for me, that error would lead me to believe that the override desktop file is pointing to an executable that isn't valid (in this context at least). So make sure the desktop file is actually valid.

Kirottu avatar Oct 23 '23 16:10 Kirottu

User specific desktop files work fine for me, that error would lead me to believe that the override desktop file is pointing to an executable that isn't valid (in this context at least). So make sure the desktop file is actually valid.

I have the same problem, it works fine if I run those desktop files directly. The .desktop from my ~/.local/share/applications/ is exactly same as that from /usr/share/applications/

Only if I delete/rename those from ~/.local/share/applications/ it will work again.

echo $XDG_DATA_DIRS:

/home/myname/.local/share:/usr/share

zaqxs123456 avatar Jan 06 '24 18:01 zaqxs123456