Hi Alberto,

Thanks for the report. I have confirmed this bug in synergy.

Upstream had disabled temp file deletion because the Windows service
uses the temporary config files, but I can't see any reason for the
gui to have that behaviour on Debian.

Attached is a patch for this fix against 1.8.7-stable, but quilt will
apply it to the 1.4.16 source if you want to build a fixed version.

Description: Remove a hack to prevent temp file deletion since it should only affect the Windows service
Author: Joshua Honeycutt <joshua.honeyc...@gmail.com>
Forwarded: not-needed
Last-Update 2017-03-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/gui/src/MainWindow.cpp
+++ b/src/gui/src/MainWindow.cpp
@@ -823,8 +823,10 @@
 
 	// HACK: deleting the object deletes the physical file, which is
 	// bad, since it could be in use by the Windows service!
-	//delete m_pTempConfigFile;
-	m_pTempConfigFile = NULL;
+	//m_pTempConfigFile = NULL;
+
+	// UNHACK: still delete the file on Debian
+	delete m_pTempConfigFile;
 
 	// reset so that new connects cause auto-hide.
 	m_AlreadyHidden = false;

Reply via email to