[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-26-g4bd29949c

miras at claws-mail.org miras at claws-mail.org
Sat Jan 16 19:59:38 CET 2021


The branch, gtk3 has been updated
       via  4bd29949cb31066ab29bcac3876a9487a2d16c9f (commit)
      from  f04096b7c36d5060fa3ce51a1a2a3945bd257c99 (commit)

Summary of changes:
 src/main.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 4bd29949cb31066ab29bcac3876a9487a2d16c9f
Author: Michael Rasmussen <mir at datanom.net>
Date:   Sat Jan 16 19:59:17 2021 +0100

    use g_get_user_runtime_dir for claws-mail socket dir instead of g_tmp_dir
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/main.c b/src/main.c
index 8b3b52773..a6ec0b9da 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2307,13 +2307,8 @@ gchar *claws_get_socket_name(void)
 		GStatBuf st;
 		gint stat_ok;
 
-		socket_dir = g_strdup_printf("%s%cclaws-mail-%d",
-					   g_get_tmp_dir(), G_DIR_SEPARATOR,
-#if HAVE_GETUID
-					   getuid());
-#else
-					   0);
-#endif
+		socket_dir = g_strdup_printf("%s%cclaws-mail",
+					   g_get_user_runtime_dir(), G_DIR_SEPARATOR);
 		stat_ok = g_stat(socket_dir, &st);
 		if (stat_ok < 0 && errno != ENOENT) {
 			g_print("Error stat'ing socket_dir %s: %s\n",

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list