ulauncher-fzf icon indicating copy to clipboard operation
ulauncher-fzf copied to clipboard

FZF is not found even if it is installed

Open eriksdev1 opened this issue 1 year ago • 9 comments

Good day, I installed the extension for ulauncher from the ulauncher site and found this github site, I'm creating an issue as I have installed fzf from its own github and is working but ulauncher's extension is not detecting it, any help is much appreciated

image

im on debian 12 stable, xfce, gnome dark prof theme

Thank you

eriksdev1 avatar Feb 01 '24 01:02 eriksdev1

You haven't installed fzf to a location inside your $PATH. If you had installed it, then which fzf would print the location (/usr/bin/fzf), you could call it by just typing fzf from any location, and this extension would not show this warning.

What you have done is probably to build and run it from the source, or maybe installed it to a location outside of PATH.

Since you're on Debian, run sudo apt install fzf.

friday avatar Feb 03 '24 16:02 friday

@friday thank you so much, knowing the default install path of (/usr/bin/fzf), and which fzf helped me, thank you so much !!

eriksdev1 avatar Feb 05 '24 07:02 eriksdev1

@friday & @hillaryychan I had to reinstall fzf, because I needed a newrer Version of fzf for another tool. So I installed fzf from GIT in /home/tobias/.fzf/bin/fzf that path is also added to my $PATH Variable.

But I still get the Error Message about the Missing Dependency.

DerTobi75 avatar Feb 22 '24 11:02 DerTobi75

So if you run which fzf it shows that? And if you run PATH=$(getconf PATH) which fzf it does not? Sounds like https://github.com/Ulauncher/Ulauncher/discussions/1351

friday avatar Feb 22 '24 12:02 friday

Ok thanks, so I would extend that file like:

[Service] Enviroment="FZF=/home/tobias/.fzf/bin/fzf"

DerTobi75 avatar Feb 22 '24 12:02 DerTobi75

No. That would set FZF as an environment variable, you'd have to do something like Enviroment="PATH=/home/tobias/.fzf/bin:$PATH", but that's a very backwards approach (I linked to that because I think it's the same root cause, but I don't suggest overriding the unit file unless you really have to).

Your want your system dependencies using other system dependencies, not binaries in your home dir. So install it proper from the system package and keep your custom build, as that should override that one for you (assuming you appended to your path correctly), but not Ulauncher.

friday avatar Feb 22 '24 13:02 friday

Basically sudo apt install fzf or whatever your package manager command is, then it should work. If which fzf still outputs your local version, then it will work.

friday avatar Feb 22 '24 13:02 friday

Ubuntu has an old version of FZF in their Package Manager, which is too old for another tool I am using :-(

DerTobi75 avatar Feb 22 '24 13:02 DerTobi75

You can close that issue. Found a workaround for me, to get ulauncher work with my FZF Version.

Thanks for your help.

DerTobi75 avatar Feb 22 '24 14:02 DerTobi75

you can just use symlink, it did work for me,

sudo ln -s /home/MY_USERNAME/.fzf/bin/fzf /usr/bin/fzf

you can change /home/MY_USERNAME/.fzf/bin/fzf with the path of fzf in your system

souhaiebtar avatar Jun 02 '24 13:06 souhaiebtar