From e34250b4406cd67a655747f3ce0909de1280a19c Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Sun, 6 Aug 2017 20:06:04 +0100 Subject: Update run_once function --- .config/awesome/rc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 26b385b..56cab96 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -120,9 +120,9 @@ local function run_once(cmd_name,cmd_args,process_name) end if not cmd_args then - awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. process_name .. "' || (" .. cmd_name .. ")") + awful.spawn.with_shell("pgrep -u $USER -x '" .. process_name .. "' || (" .. cmd_name .. ")") else - awful.util.spawn_with_shell("pgrep -f -u $USER -x '" .. process_name .. "' || (" .. cmd_name .. " " .. cmd_args .. ")") + awful.spawn.with_shell("pgrep -u $USER -x '" .. process_name .. "' || (" .. cmd_name .. " " .. cmd_args .. ")") end end -- }}} -- cgit v1.2.3