Skip to content

Commit

Permalink
Use POSIX friendly 'command -v' instead of 'which' (#73)
Browse files Browse the repository at this point in the history
Fixes 72.
  • Loading branch information
soreau authored Nov 19, 2023
1 parent 79a0598 commit fb9dd57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wcm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ void WCM::create_main_layout()
});
main_left_panel_layout.pack_end(output_config_button, false, false);

if (system("which " OUTPUT_CONFIG_PROGRAM " > /dev/null 2>&1") != 0)
if (system("command -v " OUTPUT_CONFIG_PROGRAM " > /dev/null 2>&1") != 0)
{
output_config_button.set_sensitive(false);
output_config_button.set_tooltip_markup(
Expand Down

0 comments on commit fb9dd57

Please sign in to comment.