# HG changeset patch # User Sean Egan # Date 1042139946 0 # Node ID 65a8594882402b7fa09661b0764658cf8a946c16 # Parent f1876640e56817a9d0931bab6e7439efe3afeeab [gaim-migrate @ 4516] This is apparently the "tiniest patch ever". I disagree. What does Robot101 know anyway? committer: Tailor Script diff -r f1876640e568 -r 65a859488240 src/session.c --- 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);