gotbletu / shownotes

notes for videos from my youtube channel
https://www.youtube.com/user/gotbletu
GNU General Public License v3.0
911 stars 173 forks source link

rofi-locate: don't run xdg-open if escaped #16

Closed smilingverb closed 6 years ago

smilingverb commented 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

gotbletu commented 6 years ago

i digg it thanks, updated now https://github.com/gotbletu/shownotes/blob/master/rofi_locate.md