Mercurial > pidgin
comparison src/session.c @ 4265:65a859488240
[gaim-migrate @ 4516]
This is apparently the "tiniest patch ever". I disagree. What does Robot101
know anyway?
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 09 Jan 2003 19:19:06 +0000 |
parents | e11393a176d5 |
children | d956ac6157cd |
comparison
equal
deleted
inserted
replaced
4264:f1876640e568 | 4265:65a859488240 |
---|---|
292 g_free(tmp); | 292 g_free(tmp); |
293 | 293 |
294 session_managed = TRUE; | 294 session_managed = TRUE; |
295 gdk_set_sm_client_id(client_id); | 295 gdk_set_sm_client_id(client_id); |
296 | 296 |
297 tmp = g_get_current_dir(); | |
298 session_set_string(session, SmCurrentDirectory, tmp); | |
299 g_free(tmp); | |
300 | |
297 tmp = g_strdup_printf("%d", (int) getpid()); | 301 tmp = g_strdup_printf("%d", (int) getpid()); |
298 session_set_string(session, SmProcessID, tmp); | 302 session_set_string(session, SmProcessID, tmp); |
299 g_free(tmp); | 303 g_free(tmp); |
300 | 304 |
301 tmp = g_strdup(g_get_user_name()); | 305 tmp = g_strdup(g_get_user_name()); |
310 | 314 |
311 cmd[0] = myself; | 315 cmd[0] = myself; |
312 cmd[1] = NULL; | 316 cmd[1] = NULL; |
313 session_set_array(session, SmCloneCommand, cmd); | 317 session_set_array(session, SmCloneCommand, cmd); |
314 | 318 |
319 /* this is currently useless, but gnome-session warns 'the following applications will not | |
320 save their current status' bla bla if we don't have it and the user checks 'Save Session' | |
321 when they log out */ | |
315 cmd[1] = "-v"; | 322 cmd[1] = "-v"; |
316 cmd[2] = NULL; | 323 cmd[2] = NULL; |
317 session_set_array(session, SmDiscardCommand, cmd); | 324 session_set_array(session, SmDiscardCommand, cmd); |
318 | 325 |
319 cmd[1] = "--session"; | 326 cmd[1] = "--session"; |