Skip to content

Commit

Permalink
Run script commands with "/bin/sh -c ..." (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider authored Mar 2, 2025
1 parent 5166de0 commit dc7cd1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions.vala
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ namespace SwayNotificationCenter {
spawn_env += additions;
}

string[] argvp = {};
Shell.parse_argv (cmd, out argvp);
string[] argvp;
Shell.parse_argv ("/bin/sh -c %s".printf (cmd), out argvp);

Pid child_pid;
int std_output;
Expand Down

0 comments on commit dc7cd1a

Please sign in to comment.