You are not logged in.

#1 2024-05-22 14:13:18

NopeImNotHere
Member
Registered: 2024-05-22
Posts: 5

[SOLVED] Wofi drun Where does it pull Applications from?

Hello,
I recently picked up Hyprland and through that also Wofi
I have some Apps that run through an AppImage, but I was already familiar with GNOME and where its app launcher pulls Apps from (being ~/.local/share/applications and the icons from ~/.local/share/icons/).
Like normal, I thought I just create the .desktop file validate it with the command and Wofi would pick it up.
I also have restarted my PC and updated the desktop Database
It of course didn't so I googled where Wofi (or Rofi for that matter) pulls the .desktop Files from.
Online they all say it pulls from ~/.local/share/applications/.

Now I am in a Bummer and was hoping somebody here knows more about this than I do and can help me.
AMA if you need specific Information i.e. are certain ENVs set.

Last edited by NopeImNotHere (2024-05-22 22:21:09)

Offline

#2 2024-05-22 19:28:57

snakeroot
Member
Registered: 2012-10-06
Posts: 175

Re: [SOLVED] Wofi drun Where does it pull Applications from?

man (7) wofi wrote:

drun - searches $XDG_DATA_HOME/applications and $XDG_DATA_DIRS/applications for desktop files and allows them to be run by selecting them.

* * * *

In the event $XDG_DATA_HOME is not specified it defaults to ~/.local/share. If $XDG_DATA_DIRS is not specified it defaults to /usr/local/share:/usr/share.

So the directories searched can be changed in the environment and only fallback to ~/.local/share;  it is not merely user's home directory which is searched but the global /usr/share directory as well.

Is it possible that you have set the environment variables $XDG_DATA_HOME and $XDG_DATA_DIRS, perhaps in your hyprlnd.conf file?

Are there .desktop files in /usr/share/applications and in ~/.local/share/applications?

Are you executing the wofi command from the command line or via keybinding in the hyprlnd.conf file? If the former, does it throw any error messages? If the latter, what is the full command associated with the keybinding? What happens if you run that command from the command line?

Offline

#3 2024-05-22 22:20:44

NopeImNotHere
Member
Registered: 2024-05-22
Posts: 5

Re: [SOLVED] Wofi drun Where does it pull Applications from?

Welp While going through all the info snakeroot requested I have found my Issue

Desktop Entry

[Desktop Entry]
Name=wootility-lekker
Exec=wootility-lecker
Terminal=false
Type=Application
Icon=wootility-lekker
StartupWMClass=wootility-lekker
X-AppImage-Version=4.6.20
MimeType=x-scheme-handler/wootwoot;x-scheme-handler/web+wootwoot;
Categories=Utility;

The Application is called wootility-lekker not lecker (In the Exec) ....
That's why it wasn't shown in drun as the parsing of it was possible? (Weird that a validator does not catch that)
Thanks anyways!

Last edited by NopeImNotHere (2024-05-22 22:21:44)

Offline

Board footer

Powered by FluxBB