summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2015-08-03 19:08:15 -0700
committerJay Sorg <jay.sorg@gmail.com>2015-08-03 19:08:15 -0700
commit870437ac420a01483353d60aca2427fc7f749233 (patch)
tree2497d76cea6799ef0a833fa85d03ff8659a4b553 /sesman
parenta4f8705e99997e0d2fbe6273d06066f17a8b2b07 (diff)
downloadxrdp-proprietary-870437ac420a01483353d60aca2427fc7f749233.tar.gz
xrdp-proprietary-870437ac420a01483353d60aca2427fc7f749233.zip
sesman: don't use hard code path for Xorg
Diffstat (limited to 'sesman')
-rw-r--r--sesman/session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 40ff3480..5185d738 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -697,7 +697,7 @@ session_start_fork(int width, int height, int bpp, char *username,
xserver_params->auto_free = 1;
/* these are the must have parameters */
- list_add_item(xserver_params, (long) g_strdup("/usr/bin/Xorg"));
+ list_add_item(xserver_params, (long) g_strdup("Xorg"));
list_add_item(xserver_params, (long) g_strdup(screen));
/* additional parameters from sesman.ini file */
@@ -718,7 +718,7 @@ session_start_fork(int width, int height, int bpp, char *username,
g_setenv("XRDP_START_HEIGHT", geometry, 1);
/* fire up Xorg */
- g_execvp("/usr/bin/Xorg", pp1);
+ g_execvp("Xorg", pp1);
}
else if (type == SESMAN_SESSION_TYPE_XVNC)
{