From 11905f037fe509f1f0588c21b55a7dee68541927 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 21 Apr 2021 12:22:27 +0200 Subject: Look for the location of the locking screen app using user's PATH --- mate-session/gsm-inhibit-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mate-session/gsm-inhibit-dialog.c') diff --git a/mate-session/gsm-inhibit-dialog.c b/mate-session/gsm-inhibit-dialog.c index c79fa18..89f46e0 100644 --- a/mate-session/gsm-inhibit-dialog.c +++ b/mate-session/gsm-inhibit-dialog.c @@ -96,7 +96,8 @@ lock_screen (GsmInhibitDialog *dialog) if ((screen_locker_command = gsm_get_screen_locker_command ()) != NULL) { GError *error = NULL; - g_spawn_async (NULL, screen_locker_command, NULL, G_SPAWN_DEFAULT, + g_spawn_async (NULL, screen_locker_command, NULL, + G_SPAWN_DEFAULT | G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error); if (error != NULL) { -- cgit v1.2.1