summaryrefslogtreecommitdiffstats
path: root/src/ibusshare.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ibusshare.c')
-rw-r--r--src/ibusshare.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ibusshare.c b/src/ibusshare.c
index 510b2be..f87bb0c 100644
--- a/src/ibusshare.c
+++ b/src/ibusshare.c
@@ -97,6 +97,9 @@ ibus_get_socket_path (void)
username = ibus_get_user_name ();
+ if (hostname[0] == '\0')
+ hostname = "unix";
+
path = g_strdup_printf (
"/tmp/ibus-%s/ibus-%s-%s",
username, hostname, displaynumber);