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>
Slávek Banko 1 month ago
parent
commit
d3834ad4f5
Signed by: Slávek Banko <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      kdesktop/lock/main.cc

+ 1
- 1
kdesktop/lock/main.cc View File

@@ -332,7 +332,7 @@ int main( int argc, char **argv )
332 332
 #endif
333 333
 		}
334 334
 
335
-		TDELockFile lock(locateLocal("tmp", "kdesktop_lock_lockfile"));
335
+		TDELockFile lock(locateLocal("tmp", TQString("kdesktop_lock_lockfile.%1").arg(getenv("DISPLAY"))));
336 336
 		lock.setStaleTime(0);
337 337
 		TDELockFile::LockResult lockRet = lock.lock();
338 338
 		if (lockRet != TDELockFile::LockOK) {

Loading…
Cancel
Save