Browse Source

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 <slavek.banko@axis.cz>
(cherry picked from commit d3834ad4f5)
pull/182/head
Slávek Banko 3 years ago
parent
commit
5f7a92ca0a
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 2
      kdesktop/lock/main.cc

2
kdesktop/lock/main.cc

@ -325,7 +325,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) {

Loading…
Cancel
Save