~ubuntu-branches/debian/stretch/lightdm/stretch

« back to all changes in this revision

Viewing changes to tests/src/test-qt-greeter.cpp

  • Committer: Package Import Robot
  • Author(s): Yves-Alexis Perez
  • Date: 2013-10-31 09:31:16 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20131031093116-zpr143y5f7iq2zog
Tags: 1.8.3-1
* New upstream release.
* debian/rules:
  - enable all hardening flags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
243
243
int
244
244
main(int argc, char *argv[])
245
245
{
246
 
    gchar *display, *xdg_seat, *xdg_vtnr, *xdg_session_cookie;
 
246
    gchar *display, *xdg_seat, *xdg_vtnr, *xdg_session_cookie, *xdg_session_class;
247
247
    GString *status_text;   
248
248
 
249
249
#if !defined(GLIB_VERSION_2_36)
254
254
    xdg_seat = getenv ("XDG_SEAT");
255
255
    xdg_vtnr = getenv ("XDG_VTNR");
256
256
    xdg_session_cookie = getenv ("XDG_SESSION_COOKIE");
 
257
    xdg_session_class = getenv ("XDG_SESSION_CLASS");
257
258
    if (display)
258
259
    {
259
260
        if (display[0] == ':')
279
280
        g_string_append_printf (status_text, " XDG_VTNR=%s", xdg_vtnr);
280
281
    if (xdg_session_cookie)
281
282
        g_string_append_printf (status_text, " XDG_SESSION_COOKIE=%s", xdg_session_cookie);
 
283
    if (xdg_session_class)
 
284
        g_string_append_printf (status_text, " XDG_SESSION_CLASS=%s", xdg_session_class);
282
285
    status_notify (status_text->str);
283
286
    g_string_free (status_text, TRUE);
284
287