From 6e94e368ed12db181d36059ff82e8f5400a5dcb3 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 8 Apr 2021 12:43:56 +0200 Subject: [PATCH] keyboard_layout.lua: quote command argument --- simple/widgets/keyboard_layout.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple/widgets/keyboard_layout.lua b/simple/widgets/keyboard_layout.lua index 3a07c4f..3ed710c 100644 --- a/simple/widgets/keyboard_layout.lua +++ b/simple/widgets/keyboard_layout.lua @@ -11,7 +11,7 @@ local layouts = config.widgets.keyboard_layout.layouts local current_layout_index = 1 function switchLayout() current_layout_index = (current_layout_index % #(layouts)) + 1 - os.execute(config.widgets.keyboard_layout.layout_switch_command .. " " .. layouts[current_layout_index]) + os.execute(config.widgets.keyboard_layout.layout_switch_command .. " \"" .. layouts[current_layout_index] .. "\"") end return { @@ -23,4 +23,4 @@ return { hotkey.make(config.switch_alt, switchLayout, { description = "switch keyboard layout (alternative)" }) end -} \ No newline at end of file +}