Mercurial > pidgin
changeset 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 | f1876640e568 |
children | 9ccb6c521cb2 |
files | src/session.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/session.c Thu Jan 09 18:19:20 2003 +0000 +++ b/src/session.c Thu Jan 09 19:19:06 2003 +0000 @@ -294,6 +294,10 @@ session_managed = TRUE; gdk_set_sm_client_id(client_id); + tmp = g_get_current_dir(); + session_set_string(session, SmCurrentDirectory, tmp); + g_free(tmp); + tmp = g_strdup_printf("%d", (int) getpid()); session_set_string(session, SmProcessID, tmp); g_free(tmp); @@ -312,6 +316,9 @@ cmd[1] = NULL; session_set_array(session, SmCloneCommand, cmd); + /* this is currently useless, but gnome-session warns 'the following applications will not + save their current status' bla bla if we don't have it and the user checks 'Save Session' + when they log out */ cmd[1] = "-v"; cmd[2] = NULL; session_set_array(session, SmDiscardCommand, cmd);