[gnome-system-monitor] Use XDG user runtime directory instead of tmp for temporary files.
- From: Chris KÃhl <chriskuehl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor] Use XDG user runtime directory instead of tmp for temporary files.
- Date: Mon, 14 Nov 2011 23:25:30 +0000 (UTC)
commit f8fd26f1a3bf9b58a72e7cacdd1eb960736d49d5
Author: Robert Roth <robert roth off gmail com>
Date: Mon Nov 14 21:51:58 2011 +0200
Use XDG user runtime directory instead of tmp for temporary files.
https://bugzilla.gnome.org/show_bug.cgi?id=646393
src/bacon-message-connection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/bacon-message-connection.c b/src/bacon-message-connection.c
index 3fee6f4..55ce1c7 100644
--- a/src/bacon-message-connection.c
+++ b/src/bacon-message-connection.c
@@ -228,7 +228,7 @@ socket_filename (const char *prefix)
const char *tmpdir;
pattern = g_strdup_printf ("%s.%s.*", prefix, g_get_user_name ());
- tmpdir = g_get_tmp_dir ();
+ tmpdir = g_get_user_runtime_dir ();
filename = find_file_with_pattern (tmpdir, pattern);
if (filename == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]