diff options
| -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 |
