From 7cc736d5d37f33c6b07eea15c9d220dd2ee5b7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Sat, 18 Apr 2020 21:32:22 +0200 Subject: 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 --- sway-launcher-desktop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway-launcher-desktop.sh') 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 -- cgit v1.2.3