summaryrefslogtreecommitdiff
path: root/launch/dmenu_runapp
diff options
context:
space:
mode:
Diffstat (limited to 'launch/dmenu_runapp')
-rwxr-xr-xlaunch/dmenu_runapp5
1 files changed, 3 insertions, 2 deletions
diff --git a/launch/dmenu_runapp b/launch/dmenu_runapp
index bf0e148..2de77f4 100755
--- a/launch/dmenu_runapp
+++ b/launch/dmenu_runapp
@@ -1,4 +1,5 @@
#!/bin/sh
apps=/usr/share/applications
-name="$(grep -rh -m1 '^Name=' $apps | cut -d'=' -f2- | sort | uniq | dmenu "$@")"
-$(grep '^Exec=[^%]*' -o -m1 $(grep -rl -m1 "$name" $apps) | cut -d'=' -f2-) &
+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) &