aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-10-15 14:10:55 +0200
committerMoritz Meißelbach <m.meisselbach@inpsyde.com>2019-10-15 14:10:55 +0200
commit915eaf1a47310261a08ef811391c6b781e61167e (patch)
tree44d8841685364b7d8bf733dd60995966f6cada78
parent5cd4648cbb060b9f131619e4a1a8c4ad859bf37f (diff)
downloadsway-launcher-desktop-915eaf1a47310261a08ef811391c6b781e61167e.tar.gz
sway-launcher-desktop-915eaf1a47310261a08ef811391c6b781e61167e.zip
Improve awk usage so only the first Name= entry is used from a desktop file
-rwxr-xr-xsway-launcher-desktop.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index 8043423..741abb3 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -11,7 +11,6 @@ if [[ "$1" = 'describe' ]]; then
description="${arr[0]}"
description="${description%*-}"
else
- echo $1
title=$(sed -ne '/^Name=/{s/^Name=//;p;q}' "$1")
description=$(sed -ne '/^Comment=/{s/^Comment=//;p;q}' "$1")
fi