From 5d7f7182eb46f3d8d5f911ca41d8bbec35990393 Mon Sep 17 00:00:00 2001 From: Joe Fiorini Date: Tue, 22 Oct 2019 16:21:05 -0400 Subject: Better when it actually works... --- sway-launcher-desktop.sh | 4 ++-- 1 file 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]}") -- cgit v1.2.3