~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to src/seat-xvnc.c

  • Committer: Robert Ancell
  • Date: 2013-09-04 21:41:50 UTC
  • Revision ID: robert.ancell@canonical.com-20130904214150-h5n7dtzmlqbklnol
Don't write X authority with g_file_replace - it can leave intermediate files around if it is interrupted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
    XServerXVNC *xserver;
86
86
    GInetSocketAddress *address;
87
87
    gchar *hostname;
88
 
    gchar *path;
 
88
    const gchar *path;
89
89
 
90
90
    xserver = XSERVER_XVNC (display_get_display_server (display));
91
91
 
98
98
    process_set_env (script, "XAUTHORITY", path);
99
99
 
100
100
    g_free (hostname);
101
 
    g_free (path);
102
101
 
103
102
    SEAT_CLASS (seat_xvnc_parent_class)->run_script (seat, display, script);
104
103
}