gnome-session r5351 - in trunk: . gnome-session
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-session r5351 - in trunk: . gnome-session
- Date: Tue, 24 Mar 2009 22:24:06 +0000 (UTC)
Author: vuntz
Date: Tue Mar 24 22:24:06 2009
New Revision: 5351
URL: http://svn.gnome.org/viewvc/gnome-session?rev=5351&view=rev
Log:
2009-03-24 Vincent Untz <vuntz gnome org>
* gnome-session/gsm-util.c: (ensure_dir_exists): create the dir with
permission 0755.
(gsm_util_get_saved_session_dir): use ~/.config instead of ~/.gnome2.
It's a good time to start using the xdg folders before we actually
start putting data.
Modified:
trunk/ChangeLog
trunk/gnome-session/gsm-util.c
Modified: trunk/gnome-session/gsm-util.c
==============================================================================
--- trunk/gnome-session/gsm-util.c (original)
+++ trunk/gnome-session/gsm-util.c Tue Mar 24 22:24:06 2009
@@ -128,7 +128,7 @@
if (g_file_test (dir, G_FILE_TEST_IS_DIR))
return TRUE;
- if (g_mkdir_with_parents (dir, 488) == 0)
+ if (g_mkdir_with_parents (dir, 0755) == 0)
return TRUE;
if (errno == EEXIST)
@@ -146,8 +146,7 @@
gboolean exists;
_saved_session_dir =
- g_build_filename (g_get_home_dir (),
- ".gnome2",
+ g_build_filename (g_get_user_config_dir (),
"gnome-session",
"saved-session",
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]