summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2017-08-06 20:06:04 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2017-08-06 20:06:04 +0100
commite34250b4406cd67a655747f3ce0909de1280a19c (patch)
tree3a1c2b33fc12aa7e9fceb129b97d15f34c90dcab
parentc3ef9e43e60e45ca4ad7a75f26aad830386b2c32 (diff)
downloadawesome-e34250b4406cd67a655747f3ce0909de1280a19c.tar.gz
Update run_once function
Diffstat (limited to '')
-rw-r--r--.config/awesome/rc.lua4
1 files 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
-- }}}