updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / lxdm-svn / 11-use-desktop-session.patch
blob099a8471e4025b9274a52c79e39b1fbffcf1eb7a
1 Index: lxdm-svn/src/lxdm.c
2 ===================================================================
3 --- lxdm-svn/src/lxdm.c (revision 2334)
4 +++ lxdm-svn/src/lxdm.c (working copy)
5 @@ -897,11 +897,13 @@
6 session = g_key_file_get_string(config, "base", "session", 0);
7 if( !session && getenv("PREFERRED") )
8 session = g_strdup( getenv("PREFERRED") );
9 - if( !session && getenv("DESKTOP") )
10 + if( !session && getenv("DESKTOP_SESSION") )
12 - char *p = getenv("DESKTOP");
13 + char *p = getenv("DESKTOP_SESSION");
14 if( !strcmp(p, "LXDE") )
15 session = g_find_program_in_path("startlxde");
16 + else if(!strcmp(p,"Lubuntu"))
17 + session = g_find_program_in_path("startlubuntu");
18 else if( !strcmp(p, "GNOME") )
19 session = g_find_program_in_path("gnome-session");
20 else if( !strcmp(p, "KDE") )