Skip to content

Commit

Permalink
search binaries in PATH when executing thumbnailer command
Browse files Browse the repository at this point in the history
  • Loading branch information
giomatfois62 committed Feb 26, 2024
1 parent 6c5b8be commit 3284837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/rofi-icon-fetcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ static gboolean exec_thumbnailer_command(gchar **command_args) {
gint wait_status;
GError *error = NULL;

gboolean spawned = g_spawn_sync("/usr/bin", command_args,
NULL, G_SPAWN_DEFAULT, NULL, NULL, NULL, NULL, &wait_status, &error);
gboolean spawned = g_spawn_sync(NULL, command_args,
NULL, G_SPAWN_DEFAULT | G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, &wait_status, &error);

if (spawned) {
return g_spawn_check_exit_status(wait_status, NULL);
Expand Down

0 comments on commit 3284837

Please sign in to comment.