summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-10-07 19:21:14 -0400
committerRobert Ancell <robert.ancell@canonical.com>2011-10-07 19:21:14 -0400
commit57bce27b74f463273a308cc53327b1f0903b5a94 (patch)
treeb4d192714685e3a6a88288c073efebd02494ec03
parenta94d21d0bcd22f92f6ff44d19ca3abf87066aea3 (diff)
downloadlightdm-git-57bce27b74f463273a308cc53327b1f0903b5a94.tar.gz
Use absolute path for session so regression tests work for guest session againlightdm-1.0.3
-rw-r--r--src/display.c7
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;