summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-04-21 12:22:27 +0200
committerraveit65 <[email protected]>2021-04-22 08:09:33 +0200
commit11905f037fe509f1f0588c21b55a7dee68541927 (patch)
treebf0ea0c59b5738d622c51fff6b0b5a473da1da63
parent583fc7fb3f519883e87e6ba3c5cba125664d6927 (diff)
downloadmate-session-manager-11905f037fe509f1f0588c21b55a7dee68541927.tar.bz2
mate-session-manager-11905f037fe509f1f0588c21b55a7dee68541927.tar.xz
Look for the location of the locking screen app using user's PATH
-rw-r--r--mate-session/gsm-inhibit-dialog.c3
-rw-r--r--mate-session/gsm-manager.c3
2 files changed, 4 insertions, 2 deletions
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) {
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 091f536..260836a 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -1236,7 +1236,8 @@ manager_perhaps_lock (GsmManager *manager)
}
/* do this sync to ensure it's on the screen when we start suspending */
- g_spawn_sync (NULL, screen_locker_command, NULL, G_SPAWN_DEFAULT,
+ g_spawn_sync (NULL, screen_locker_command, NULL,
+ G_SPAWN_DEFAULT | G_SPAWN_SEARCH_PATH,
NULL, NULL, NULL, NULL, NULL, &error);
if (error) {