Merge lp:~robert-ancell/lightdm/xdg-current-desktop-non-autologin into lp:lightdm

Proposed by Robert Ancell
Status: Merged
Approved by: Robert Ancell
Approved revision: 1778
Merged at revision: 1778
Proposed branch: lp:~robert-ancell/lightdm/xdg-current-desktop-non-autologin
Merge into: lp:lightdm
Diff against target: 22 lines (+4/-1)
1 file modified
src/seat.c (+4/-1)
To merge this branch: bzr merge lp:~robert-ancell/lightdm/xdg-current-desktop-non-autologin
Reviewer Review Type Date Requested Status
Robert Ancell Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+184500@code.launchpad.net

Commit message

Set XDG_CURRENT_DESKTOP for login sessions

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1778
http://jenkins.qa.ubuntu.com/job/lightdm-ci/193/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/lightdm-saucy-amd64-ci/110

Click here to trigger a rebuild:
http://s-jenkins:8080/job/lightdm-ci/193/rebuild

review: Approve (continuous-integration)
Revision history for this message
Robert Ancell (robert-ancell) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/seat.c'
2--- src/seat.c 2013-08-25 20:46:15 +0000
3+++ src/seat.c 2013-09-09 03:25:20 +0000
4@@ -929,7 +929,7 @@
5 greeter_start_session_cb (Greeter *greeter, SessionType type, const gchar *session_name, Seat *seat)
6 {
7 Session *session, *existing_session;
8- const gchar *username, *language = NULL;
9+ const gchar *username, *desktop_name, *language = NULL;
10 SessionConfig *session_config;
11 User *user;
12 gchar *sessions_dir = NULL;
13@@ -1003,6 +1003,9 @@
14 g_strfreev (argv);
15 session_set_env (session, "DESKTOP_SESSION", session_name);
16 session_set_env (session, "GDMSESSION", session_name);
17+ desktop_name = session_config_get_desktop_name (session_config);
18+ if (desktop_name)
19+ session_set_env (session, "XDG_CURRENT_DESKTOP", desktop_name);
20 if (language && language[0] != '\0')
21 {
22 session_set_env (session, "LANG", language);

Subscribers

People subscribed via source and target branches