Closed smilingverb closed 6 years ago
I'd propose to use xargs -r -0 to cancel the operation if no file is selected:
locate home media | rofi -threads 0 -width 100 -dmenu -i -p "locate:" | xargs -r -0 xdg-open
i digg it thanks, updated now https://github.com/gotbletu/shownotes/blob/master/rofi_locate.md
I'd propose to use xargs -r -0 to cancel the operation if no file is selected:
locate home media | rofi -threads 0 -width 100 -dmenu -i -p "locate:" | xargs -r -0 xdg-open