aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoritz Meißelbach <arbelzapf@gmail.com>2020-04-18 21:32:22 +0200
committerMoritz Meißelbach <arbelzapf@gmail.com>2020-04-18 21:32:22 +0200
commit7cc736d5d37f33c6b07eea15c9d220dd2ee5b7c9 (patch)
tree5cbd6a8b398a1df87fabcff3fba7ddef37717bf6
parent80b9323b479740782cf7ba11a762f5e8ee5ef03e (diff)
downloadsway-launcher-desktop-7cc736d5d37f33c6b07eea15c9d220dd2ee5b7c9.tar.gz
sway-launcher-desktop-7cc736d5d37f33c6b07eea15c9d220dd2ee5b7c9.zip
Fix #23. Apparently there once was a reason to strip the last character of the action parameter. This no longer seems to be the case so the string manipulation is removed
-rwxr-xr-xsway-launcher-desktop.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index 6e1d055..7199474 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -144,7 +144,7 @@ function generate-command() {
# Define the search pattern that specifies the block to search for within the .desktop file
PATTERN="^\\\\[Desktop Entry\\\\]"
if [[ -n $2 ]]; then
- PATTERN="^\\\\[Desktop Action ${2%?}\\\\]"
+ PATTERN="^\\\\[Desktop Action ${2}\\\\]"
fi
# 1. We see a line starting [Desktop, but we're already searching: deactivate search again
# 2. We see the specified pattern: start search