diff options
author | Slávek Banko <[email protected]> | 2019-02-11 17:40:48 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-11 17:40:48 +0100 |
commit | d3834ad4f50062ba720bc38e9248bd3c1335b50d (patch) | |
tree | 2dd017fcdac324b6f0ae7420146b96f4aeee5b64 | |
parent | dc4a0dd776c07aaaec23489f4500b53ebe9bf581 (diff) | |
download | tdebase-d3834ad4f50062ba720bc38e9248bd3c1335b50d.tar.gz tdebase-d3834ad4f50062ba720bc38e9248bd3c1335b50d.zip |
Add $DISPLAY to kdesktop_lock_lockfile file name.
This resolves bug 2998.
Thanks to Russell Brown for analyzing the problem and propose a solution.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | kdesktop/lock/main.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kdesktop/lock/main.cc b/kdesktop/lock/main.cc index 871c87a69..f2732345a 100644 --- a/kdesktop/lock/main.cc +++ b/kdesktop/lock/main.cc @@ -332,7 +332,7 @@ int main( int argc, char **argv ) #endif } - TDELockFile lock(locateLocal("tmp", "kdesktop_lock_lockfile")); + TDELockFile lock(locateLocal("tmp", TQString("kdesktop_lock_lockfile.%1").arg(getenv("DISPLAY")))); lock.setStaleTime(0); TDELockFile::LockResult lockRet = lock.lock(); if (lockRet != TDELockFile::LockOK) { |