X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fmain.c;h=0de3de86f574012e359266d0a9d685c6ed20c08e;hp=ff5bd38a03063f65e823d1ddc827b3efe64b691c;hb=e56346845c2a23ec1fd0abc32b7c1598766333dd;hpb=f98fe106080636cea26fbaf923673ba4016e33c8 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));