diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pavolctld.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/pavolctld.lua b/lib/pavolctld.lua index b6b6237..e14d964 100644 --- a/lib/pavolctld.lua +++ b/lib/pavolctld.lua @@ -10,6 +10,15 @@ local Gio = lgi.Gio -- start subprocess local p = Gio.Subprocess.new({ "pavolctld" }, Gio.SubprocessFlags.STDIN_PIPE + Gio.SubprocessFlags.STDOUT_PIPE) +if p == nil then + -- TODO see if error should be handled another way + naughty.notify({ + preset = naughty.config.presets.critical, + title = "pavolctld error", + text = "pavolctld could not be loaded", + }) + return false +end local stdout = p:get_stdout_pipe() local stdin = p:get_stdin_pipe() |