Commit ac66a43d authored by Vincent Untz's avatar Vincent Untz Committed by Vincent Untz

create the dir with permission 0755. (gsm_util_get_saved_session_dir): use

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.

svn path=/trunk/; revision=5351
parent 577746e1
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.
2009-03-24 Vincent Untz <vuntz@gnome.org>
* gnome-session/gsm-inhibit-dialog.c: (update_dialog_text): fix debug
......
......@@ -128,7 +128,7 @@ ensure_dir_exists (const char *dir)
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 @@ gsm_util_get_saved_session_dir (void)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment