diff options
author | Timmy Keller <tjk@tjkeller.xyz> | 2022-01-20 17:07:39 -0600 |
---|---|---|
committer | Timmy Keller <tjk@tjkeller.xyz> | 2022-01-20 17:07:39 -0600 |
commit | 1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68 (patch) | |
tree | abf5bd1cfa67232bc349174135814e316be3de3b /launch/dmenu_runapp | |
parent | 32d34ac9c5e3b682800f65f24743f2f29af04347 (diff) | |
download | scripts-1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68.tar.xz scripts-1ffe58f3ee6eeb2d81729eb7c458a8979eb2df68.zip |
moved many scripts around, small tweaks/rewrites, mounter verify xsudo and xclick scripts
Diffstat (limited to 'launch/dmenu_runapp')
-rwxr-xr-x | launch/dmenu_runapp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp index 2de77f4..a2d8fb8 100755 --- a/launch/dmenu_runapp +++ b/launch/dmenu_runapp @@ -1,5 +1,4 @@ #!/bin/sh -apps=/usr/share/applications -name="$(grep -h -m1 '^Name=' $apps/* | cut -d'=' -f2- | sort | uniq | dmenu "$@")" -#$(grep '^Exec=[^%]*' -o -m1 $(grep -l -m1 "$name" $apps/*) | cut -d'=' -f2-) & -gtk-launch $(basename `grep -l -m1 "$name" $apps/*` .desktop) & +apps="$(echo $XDG_DATA_DIRS: | sed 's/:/\/applications\/*.desktop /g')" +name="$(grep -Rhm1 '^Name=' $apps 2>/dev/null | cut -d'=' -f2- | sort | uniq | dmenu "$@")" +[ -n "$name" ] && gtk-launch $(basename `grep -Rlm1 "^Name=$name" $apps 2>/dev/null`) & |