ulauncher-file-search
ulauncher-file-search copied to clipboard
None of the commands seem to work
All file search commands return no results. Any ideas as to why I'm running into this issue?
Are you sure you have fd (https://github.com/sharkdp/fd) installed?
Same for me, I can't get any results; I type fd foo
and get "No results found matching foo
". I have installed fd
from https://github.com/sharkdp/fd and tried using the extension with and without setting the fd
alias (not sure if it matters). On the terminal I get near instant results.
Same issue over here on Ubuntu 19.04 using ULauncher 4.4.0.r1. Too bad, looked like a really useful extension.
I fixed the problem on Ubuntu 19.04 by modifying the following script:
~/.cache/ulauncher_cache/extensions/com.github.brpaz.ulauncher-file-search/main.py
Look for the line number 42 (it's actually spread from line 40 to 44):
cmd = [ 'timeout', '5s', 'ionice', '-c', '3', 'fd', '--threads', '1', '--hidden' ]
Now, change 'fd' to 'fdfind', save the file, restart Ulauncher and try using the extension.
I did this because I noticed that using "fd" in the terminal wouldn't work for some reason, so I looked for the file in the bin folder and it was named fdfind, so I thought: "typing fdfind in the terminal should work", and it did. Then it made sense to modify the main script for the extension.
I hope it works for you guys.
Same problem here but I didn't have fd installed and also had a bash alias set to fd for fdisk.
Installed fd and changed my alias and all is good now.
@fvcalderan's method worked for me (Pop OS 19.04) while setting a bash alias didn't, but modifying the extension script isn't a great solution. I guess there are two things the extension could do to make this better: provide an error / warning if fd
isn't installed (per #14), and provide a config option for user to set the program name (with the default set to fd
).
[note for future googlers: the extension directory has changed in ulauncher v5, you'll now find the script in ~/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-file-search
]
On Linux Mint 19.3 Cinnamon the following solved it:
I aliased fd=fdfind AND
changed fd to fdfind in the main.py at
~/.local/share/ulauncher/extensions/com.github.brpaz.ulauncher-file-search
as @fvcalderan suggested
Now I can type fd [something] in uLauncher
Thanks @torbenf, this worked for me Ubuntu 19.04, xcfe
On ubuntu:
sudo ln -s /usr/bin/fdfind /usr/local/bin/fd
or to some other destination in your path.
It works for me now, but it is a lot slower than on the terminal for some reason.