summaryrefslogtreecommitdiff
path: root/mate-session/gsm-manager.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-04-21 12:22:27 +0200
committerraveit65 <[email protected]>2021-04-22 08:05:30 +0200
commit48dbe56bcc8b2829a9b480fc305ccb81e40177ea (patch)
tree5103f828e88a6e8662f999adecd32a7c1f2299e4 /mate-session/gsm-manager.c
parent0168fda83f69bc788949fd75613611f77afe37a3 (diff)
downloadmate-session-manager-48dbe56bcc8b2829a9b480fc305ccb81e40177ea.tar.bz2
mate-session-manager-48dbe56bcc8b2829a9b480fc305ccb81e40177ea.tar.xz
Look for the location of the locking screen app using user's PATH
Diffstat (limited to 'mate-session/gsm-manager.c')
-rw-r--r--mate-session/gsm-manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 4be8eb0..b7ed55b 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) {