diff options
-rw-r--r-- | kdesktop/lock/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index e0ba2b662..d35c86957 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -330,7 +330,11 @@ int main( int argc, char **argv ) int len; char procpath[PATH_MAX]; char fullpath[PATH_MAX]; - snprintf(procpath, sizeof(procpath), "/proc/%d/exe", pid); +#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; |