anyrun-org / anyrun

A wayland native, highly customizable runner.
GNU General Public License v3.0
687 stars 53 forks source link

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

Open Enovale opened 1 year ago

Enovale commented 1 year ago

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.

Kirottu commented 1 year ago

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.

zaqxs123456 commented 10 months ago

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