Skip to content

Commit

Permalink
Fix #23. Apparently there once was a reason to strip the last charact…
Browse files Browse the repository at this point in the history
…er of the action parameter. This no longer seems to be the case so the string manipulation is removed
  • Loading branch information
Biont committed Apr 18, 2020
1 parent 80b9323 commit 7cc736d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-launcher-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7cc736d

Please sign in to comment.