summaryrefslogtreecommitdiffstats
path: root/kinit/kinit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kinit/kinit.cpp')
-rw-r--r--kinit/kinit.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/kinit/kinit.cpp b/kinit/kinit.cpp
index dfb7eeb6b..82f5c2aa5 100644
--- a/kinit/kinit.cpp
+++ b/kinit/kinit.cpp
@@ -59,6 +59,7 @@
#include <klibloader.h>
#include <kapplication.h>
#include <klocale.h>
+#include <dcopglobal.h>
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h>
@@ -852,12 +853,7 @@ static void init_kdeinit_socket()
exit(255);
}
}
- path = getenv("ICEAUTHORITY");
- if (path.isEmpty())
- {
- path = home_dir;
- path += "/.ICEauthority";
- }
+ path = IceAuthFileName();
if (access(path.data(), R_OK|W_OK) && (errno != ENOENT))
{
fprintf(stderr, "[kinit] Aborting. No write access to '%s'.\n", path.data());