aboutsummaryrefslogtreecommitdiffstats
path: root/sway-launcher-desktop.sh
diff options
context:
space:
mode:
authorJoe Fiorini <joe@joefiorini.com>2019-10-22 16:21:05 -0400
committerGitHub <noreply@github.com>2019-10-22 16:21:05 -0400
commit5d7f7182eb46f3d8d5f911ca41d8bbec35990393 (patch)
tree164effae60e66b020664c53d5a5509189af1c799 /sway-launcher-desktop.sh
parentbe6c50d95f79590ec990fc69dae635c19c96604b (diff)
downloadsway-launcher-desktop-5d7f7182eb46f3d8d5f911ca41d8bbec35990393.tar.gz
sway-launcher-desktop-5d7f7182eb46f3d8d5f911ca41d8bbec35990393.zip
Better when it actually works...
Diffstat (limited to 'sway-launcher-desktop.sh')
-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 52fdf7a..68feb9f 100755
--- a/sway-launcher-desktop.sh
+++ b/sway-launcher-desktop.sh
@@ -131,7 +131,7 @@ desktop)
# 3. We see an Exec= line during search: remove field codes and set variable
# 3. We see a Path= line during search: set variable
# 4. Finally, build command line
- command=$(awk -v pattern="${PATTERN}" -F= '
+ command=$(awk -v pattern="${PATTERN}" -v terminal_command="${TERMINAL_COMMAND}" -F= '
BEGIN{a=0;exec=0;path=0}
/^\[Desktop/{
if(a){
@@ -165,7 +165,7 @@ desktop)
printf "cd " path " &&"
}
if (terminal){
- printf "$TERMINAL_COMMAND "
+ printf terminal_command " "
}
print exec
}' "${PARAMS[0]}")