summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdesktop/lock/main.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc
index 114ce7ef0..1b9292a59 100644
--- a/kdesktop/lock/main.cc
+++ b/kdesktop/lock/main.cc
@@ -338,7 +338,11 @@ int main( int argc, char **argv )
int len;
char procpath[PATH_MAX];
char fullpath[PATH_MAX];
+#if defined(__dilos__)
+ snprintf(procpath, sizeof(procpath), "/proc/%d/path/a.out", pid);
+#else /* !__dilos__ */
snprintf(procpath, sizeof(procpath), "/proc/%d/exe", pid);
+#endif /* __dilos__ */
len = readlink( procpath, fullpath, sizeof(fullpath) );
if (len >= 0) {
fullpath[len] = 0;