Refreshing quilt patches.
[debian/lxdm.git] / debian / patches / 15-path-replace.patch
CommitLineData
e116cf0b
AG
1#launchpad bug : #524761
2--- a/src/lxdm.c
3+++ b/src/lxdm.c
fc462ee0 4@@ -1341,7 +1341,7 @@
e116cf0b
AG
5 path = g_key_file_get_string(config, "base", "path", 0);
6 if( G_UNLIKELY(path) && path[0] ) /* if PATH is specified in config file */
7 env=g_environ_setenv(env, "PATH", path, TRUE); /* override current $PATH with config value */
8- else /* don't use the global env, they are bad for user */
9+ else if(!getenv("PATH")) /* if PATH is not set */
10 env=g_environ_setenv(env, "PATH", "/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin", TRUE); /* set proper default */
11 g_free(path);
12 /* optionally override $LANG, $LC_MESSAGES, and $LANGUAGE */