[Commits] [SCM] claws branch, master, updated. 3.17.8-15-ge56346845

miras at claws-mail.org miras at claws-mail.org
Sat Jan 16 20:09:04 CET 2021


The branch, master has been updated
       via  e56346845c2a23ec1fd0abc32b7c1598766333dd (commit)
      from  f98fe106080636cea26fbaf923673ba4016e33c8 (commit)

Summary of changes:
 src/main.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)


- Log -----------------------------------------------------------------
commit e56346845c2a23ec1fd0abc32b7c1598766333dd
Author: Michael Rasmussen <mir at datanom.net>
Date:   Sat Jan 16 20:08:58 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 ff5bd38a0..0de3de86f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2304,14 +2304,9 @@ 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
-		stat_ok = g_stat(socket_dir, &st);
+		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",
 				socket_dir, g_strerror(errno));

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list