aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthal <thal@users.noreply.github.com>2020-06-21 16:34:13 -0500
committerthal <thal@users.noreply.github.com>2020-06-21 16:35:17 -0500
commitc6d2c23040c43b34b4c467bb058e96ac40dab1c4 (patch)
tree6ee16fcc79fe128b4a7ae0fc8fde129905006e73
parente96f2cafdc48ad16fdd3427a9d13ae1d2e86b042 (diff)
downloadsway-launcher-desktop-c6d2c23040c43b34b4c467bb058e96ac40dab1c4.tar.gz
sway-launcher-desktop-c6d2c23040c43b34b4c467bb058e96ac40dab1c4.zip
Support desktop files and commands containing single quotes
-rwxr-xr-xsway-launcher-desktop.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh
index 947d49b..4bcc3c0 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -44,8 +44,8 @@ if [ -f "${PROVIDERS_FILE}" ]; then
}' "${PROVIDERS_FILE}")"
HIST_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/${0##*/}-${PROVIDERS_FILE##*/}-history.txt"
else
- PROVIDERS['desktop']="${0} list-entries${DEL}${0} describe-desktop '{1}'${DEL}${0} run-desktop '{1}' {2}"
- PROVIDERS['command']="${0} list-commands${DEL}${0} describe-command {1}${DEL}${TERMINAL_COMMAND} {1}"
+ PROVIDERS['desktop']="${0} list-entries${DEL}${0} describe-desktop \"{1}\"${DEL}${0} run-desktop '{1}' {2}"
+ PROVIDERS['command']="${0} list-commands${DEL}${0} describe-command \"{1}\"${DEL}${TERMINAL_COMMAND} {1}"
HIST_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/${0##*/}-history.txt"
fi