20
850
Fork
You've already forked fuzzel
83

PATH not recognized from fish shell? #318

Closed
opened 2024年03月04日 11:26:47 +01:00 by dinodino · 4 comments

I am not sure if there is a problem with my fuzzel config or the problem lies somewhere else but, Ill give it a shot here:
  ~ ❯ echo $PATH  3m 4s 11:26:29 /var/lib/flatpak/exports/bin /usr/local/sbin /usr/local/bin /usr/bin /usr/sbin /sbin /bin
When I run fuzzel from CLI (fish shell) it shows the flatpak apps.

When I run it from my riverwm keybind
 ~ ❯ cat .config/river/init | grep fuzzel 11:26:56 riverctl map normal Super D spawn 'fuzzel'

It doesn't show any flatpaks. So I assume somehow it doesn't get the path like it does when run from cli.

Any idea what could be the issue here or how I can pinpoint it better?

I am not sure if there is a problem with my fuzzel config or the problem lies somewhere else but, Ill give it a shot here: `  ~ ❯ echo $PATH  3m 4s 11:26:29 /var/lib/flatpak/exports/bin /usr/local/sbin /usr/local/bin /usr/bin /usr/sbin /sbin /bin` When I run fuzzel from CLI (fish shell) it shows the flatpak apps. When I run it from my riverwm keybind `  ~ ❯ cat .config/river/init | grep fuzzel 11:26:56 riverctl map normal Super D spawn 'fuzzel'` It doesn't show any flatpaks. So I assume somehow it doesn't get the path like it does when run from cli. Any idea what could be the issue here or how I can pinpoint it better?
Collaborator
Copy link

Fuzzel is looking for .desktop files, not binaries.

https://wiki.archlinux.org/title/Desktop_entries

This is not a Fuzzel issue.

Fuzzel is looking for .desktop files, not binaries. https://wiki.archlinux.org/title/Desktop_entries This is not a Fuzzel issue.

Having a similar experience using sway wm. Executables from all $PATH locations are shown when I run fuzzel from the command line, but my custom executables under ~/.local/bin are not recongnized if I invoke it via the key-combo set in my sway-config.

By default, of course, fuzzel only looks for desktop entries (as @markstos mentioned), but since PR #284 has been merged, the --list-executables-in-path option provides the possibility to list other binaries too. Thus, it would be great to know how this (minor) problem could be solved generally.

BTW, I set the list-executables-in-path option via the fuzzel.ini and not as flag to the command itself. But that should make no difference I guess.

Looking forward for some ideas.

Having a similar experience using `sway` wm. Executables from *all* `$PATH` locations are shown when I run `fuzzel` from the command line, but my custom executables under `~/.local/bin` are not recongnized if I invoke it via the key-combo set in my `sway`-config. By default, of course, `fuzzel` only looks for desktop entries (as @markstos mentioned), but since [PR #284](https://codeberg.org/dnkl/fuzzel/pulls/284) has been merged, the `--list-executables-in-path` option provides the possibility to list other binaries too. Thus, it would be great to know how this (minor) problem could be solved generally. BTW, I set the `list-executables-in-path` option via the `fuzzel.ini` and not as flag to the command itself. But that should make no difference I guess. Looking forward for some ideas.
Collaborator
Copy link

This is still not a Fuzzel issue, but your custom $PATH not being set in Sway so it's not part of the environment when Fuzzel is launched.

You need to look up how to set environment variables when launching Sway.

This is still not a Fuzzel issue, but your custom `$PATH` not being set in Sway so it's not part of the environment when Fuzzel is launched. You need to look up how to set environment variables when launching Sway.

@markstos thanks for your fast reply. Indeed, it solved the problem. I thought adding to the PATH in .zprofile was early enough, but since sway is executed earlier, I had to move the code to /etc/profile. Now all custom executables are visible.

I don't know where flatpak adds to the PATH since I'm not using it. But might be worth a look to overcome the initial issue by the OP.

@markstos thanks for your fast reply. Indeed, it solved the problem. I thought adding to the `PATH` in `.zprofile` was early enough, but since `sway` is executed earlier, I had to move the code to `/etc/profile`. Now all custom executables are visible. I don't know where `flatpak` adds to the `PATH` since I'm not using it. But might be worth a look to overcome the initial issue by the OP.
Sign in to join this conversation.
No Branch/Tag specified
master
gnome-support
releases/1.14
issue-319-window-switching
issue-561-nord-theme-only
resvg-filtering-take-2
resvg-filtering
releases/1.13
rehanzo-dont-ignore-execute-648
keybinds-overwrite
issue-561-refresh-theme
ci-automated-testing
reenable-legacy-icons
releases/1.12
test-coverage-for-fzf-caching
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.14.1
1.14.0
1.13.1
1.13.0
1.12.0
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/fuzzel#318
Reference in a new issue
dnkl/fuzzel
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?