Skip to content

Commit

Permalink
Merge branch 'main' into brightness-slider
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider authored Mar 7, 2024
2 parents 9812cde + 7e4a8a1 commit 8188bc6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/functions.vala
Original file line number Diff line number Diff line change
Expand Up @@ -361,19 +361,17 @@ namespace SwayNotificationCenter {
Shell.parse_argv (cmd, out argvp);

Pid child_pid;
int std_input;
int std_output;
int std_err;
Process.spawn_async_with_pipes (
"/",
argvp,
spawn_env,
SpawnFlags.SEARCH_PATH | SpawnFlags.DO_NOT_REAP_CHILD,
null,
out child_pid,
out std_input,
null,
out std_output,
out std_err);
null);

// stdout:
string res = "";
Expand All @@ -398,6 +396,7 @@ namespace SwayNotificationCenter {
int end_status = 0;
ChildWatch.add (child_pid, (pid, status) => {
Process.close_pid (pid);
GLib.FileUtils.close (std_output);
end_status = status;
execute_command.callback ();
});
Expand Down

0 comments on commit 8188bc6

Please sign in to comment.