diff options
| author | Moritz Meißelbach <arbelzapf@gmail.com> | 2020-04-18 21:32:22 +0200 |
|---|---|---|
| committer | Moritz Meißelbach <arbelzapf@gmail.com> | 2020-04-18 21:32:22 +0200 |
| commit | 7cc736d5d37f33c6b07eea15c9d220dd2ee5b7c9 (patch) | |
| tree | 5cbd6a8b398a1df87fabcff3fba7ddef37717bf6 | |
| parent | 80b9323b479740782cf7ba11a762f5e8ee5ef03e (diff) | |
| download | sway-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-x | sway-launcher-desktop.sh | 2 |
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 |
