diff -Nru gnome-session-2.23.6/debian/changelog gnome-session-2.23.6/debian/changelog --- gnome-session-2.23.6/debian/changelog 2008-08-17 22:54:53.000000000 +0100 +++ gnome-session-2.23.6/debian/changelog 2008-08-17 22:54:53.000000000 +0100 @@ -1,3 +1,11 @@ +gnome-session (2.23.6-0ubuntu3) intrepid; urgency=low + + * debian/patches/70_create-autostart-dir.patch + - create 'autostart' folder in user config dir when adding a + new session entry (lp: #258145) + + -- Chris Coulson Sun, 17 Aug 2008 22:22:12 +0100 + gnome-session (2.23.6-0ubuntu2) intrepid; urgency=low * debian/patches/80_correct_gerror_use.patch: diff -Nru gnome-session-2.23.6/debian/patches/70_create-autostart-dir.patch gnome-session-2.23.6/debian/patches/70_create-autostart-dir.patch --- gnome-session-2.23.6/debian/patches/70_create-autostart-dir.patch 1970-01-01 01:00:00.000000000 +0100 +++ gnome-session-2.23.6/debian/patches/70_create-autostart-dir.patch 2008-08-17 22:54:53.000000000 +0100 @@ -0,0 +1,29 @@ +# Description: Create 'autostart' folder in user config folder when adding new startup app +# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=548129 +# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/258145 +Index: gnome-session-2.23.6/capplet/commands.c +=================================================================== +--- gnome-session-2.23.6.orig/capplet/commands.c 2008-08-04 19:51:19.000000000 +0100 ++++ gnome-session-2.23.6/capplet/commands.c 2008-08-17 22:07:20.000000000 +0100 +@@ -136,6 +136,7 @@ + char *data; + gsize length; + gboolean res; ++ char *dir; + + g_return_val_if_fail (keyfile != NULL, FALSE); + g_return_val_if_fail (file != NULL, FALSE); +@@ -161,9 +162,13 @@ + return FALSE; + } + ++ dir = g_path_get_dirname (filename); ++ g_mkdir_with_parents (dir, S_IRWXU); ++ + res = g_file_set_contents (filename, data, length, &write_error); + + g_free (filename); ++ g_free (dir); + + if (write_error) { + g_propagate_error (error, write_error); diff -Nru gnome-session-2.23.6/debian/patches/series gnome-session-2.23.6/debian/patches/series --- gnome-session-2.23.6/debian/patches/series 2008-08-17 22:54:53.000000000 +0100 +++ gnome-session-2.23.6/debian/patches/series 2008-08-17 22:54:53.000000000 +0100 @@ -1,3 +1,4 @@ 01_fix_session_xsmp.patch 19_gnome-wm-tweaking.patch +70_create-autostart-dir.patch 80_correct_gerror_use.patch