Skip to content

Commit e7d4844

Browse files
authored
command-output: run commands in /bin/sh (#187)
1 parent 9a9af00 commit e7d4844

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/panel/widgets/command-output.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
#include <gtk-utils.hpp>
1010

11-
static void label_set_from_command(const std::string & command_line,
11+
static void label_set_from_command(std::string command_line,
1212
Gtk::Label& label)
1313
{
14+
command_line = "/bin/sh -c \"" + command_line + "\"";
15+
1416
Glib::Pid pid;
1517
int output_fd;
1618
Glib::spawn_async_with_pipes("", Glib::shell_parse_argv(command_line),

0 commit comments

Comments
 (0)