diff options
-rw-r--r-- | src/display.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c index 9e1a5430..d86ef701 100644 --- a/src/display.c +++ b/src/display.c @@ -393,7 +393,7 @@ user_session_stopped_cb (Session *session, Display *display) static Session * create_session (Display *display, PAMSession *authentication, const gchar *session_name, gboolean is_greeter) { - gchar *sessions_dir, *filename, *path, *command = NULL; + gchar *sessions_dir, *filename, *path, *command = NULL, *t; GKeyFile *session_desktop_file; Session *session; gboolean result; @@ -426,6 +426,11 @@ create_session (Display *display, PAMSession *authentication, const gchar *sessi g_free (path); if (!command) return NULL; + + t = command; + command = g_find_program_in_path (command); + g_free (t); + if (display->priv->session_wrapper && !is_greeter) { gchar *wrapper; |