- Provide API for blocking sendMessage. - Christoph Cullmann
- New documentation generation using Doxygen
- Improved Windows basic widget example
- Updated Project License
- Fix compilation under Qt 6.2+ and stricter Qt compile settings. - Christoph Cullmann
- Support for Qt 6.3+ - Fixed deprecated
QCryptographicHash::addData()
that will only supportQByteArrayView
going further. - Moody Liu
- Fixed crash caused by sending a
writeAck
on a removed connection. - Nicolas Werner
- Added support for AppImage dynamic executable paths. - Michael Klein
- Fixed message fragmentation issue causing crashes and incorrectly / inconsistently received messages. - Nils Jeisecke
- Added support for Qt 6 - Jonas Kvinge
- Fixed warning in
Qt 5.9
withmin
/max
functions on Windows - Nick Korotysh - Fix return value of connectToPrimary() when connect is successful - Jonas Kvinge
- Fix build issue with MinGW GCC pedantic mode - Iakov Kirilenko
- Fixed conversion from
int
toquint32
and Clang Tidy warnings - Hennadii Chernyshchyk
- Improved library stability in edge cases and very rapid process initialisation
- Fixed Bug where the shared memory block may have been modified without a lock
- Fixed Bug causing
instanceStarted()
to not get emitted when a second instance has been started before the primary has initiated it'sQLocalServer
.
-
Officially supporting and build-testing against Qt 5.15
-
Fixed an MSVC C4996 warning that suggests using
strncpy_s
.Hennadii Chernyshchyk
-
CMake build system improvements
-
Fixed Clang Tidy warnings
Hennadii Chernyshchyk
-
Improved
CMakeLists.txt
Hennadii Chernyshchyk
-
Fix a crash when exiting an application on Android and iOS
Emeric Grange
-
Added currentUser() method that returns the user the current instance is running as.
Leander Schulten
- Added primaryUser() method that returns the user the primary instance is running as.
-
Fixed code warning for depricated functions in Qt 5.10 related to
QTime
andqrand()
.Hennadii Chernyshchyk
Anton Filimonov
Jonas Kvinge
-
Fallback to standard QApplication class on iOS and Android systems where the library is not supported.
-
Added Build CI tests to verify the library builds successfully on Linux, Windows and MacOS across multiple Qt versions.
Anton Filimonov
-
Fixed compilation warning/error caused by
geteuid()
on unix based systems.Iakov Kirilenko
-
Added CMake support
Hennadii Chernyshchyk
-
Use geteuid and getpwuid to get username on Unix, fallback to environment variable.
Jonas Kvinge
-
Bug Fix: sendMessage() might return false even though data was actually written.
Jonas Kvinge
- Fixed uninitialised variables in the
SingleApplicationPrivate
constructor.
-
Process socket events asynchronously
-
Fix undefined variable error on Windows
Francis Giraldeau
- Removed signal handling.
-
Fixed bug where the message sent by the second process was not received correctly when the message is sent immediately following a connection.
Francis Giraldeau
-
Refactored code and implemented shared memory block consistency checks via
qChecksum()
(CRC-16). -
Explicit
qWarning
andqCritical
when the library is unable to initialise correctly.
-
Removed C style casts and eliminated all clang warnings. Fixed
instanceId
reading from only one byte in the message deserialization. Cleaned up serialization code usingQDataStream
. Changed connection type to usequint8 enum
rather thanchar
. -
Renamed
SingleAppConnectionType
toConnectionType
. Added initialization values to allConnectionType
enum cases.Jedidiah Buck McCready
-
Added SingleApplicationPrivate::primaryPid() as a solution to allow bringing the primary window of an application to the foreground on Windows.
Eelco van Dam from Peacs BV
-
Bug fix - changed QApplication::instance() to QCoreApplication::instance()
Evgeniy Bazhenov
- Fixed compilation error with Mingw32 in MXE thanks to Vitaly Tonkacheyev.
- Removed QMutex used for thread safe behaviour. The implementation now uses QCoreApplication::instance() to get an instance to SingleApplication for memory deallocation.
-
Reverted GetUserName API usage on Windows. Fixed bug with missing library.
-
Fixed bug in the Calculator example, preventing it's window to be raised on Windows.
Special thanks to Charles Gunawan.
-
Fixed a memory leak in the SingleApplicationPrivate destructor.
Sergei Moiseev
-
Fixed shadow and uninitialised variable warnings.
Paul Walmsley
-
Removed Microsoft Windows specific code for getting username due to multiple problems and compiler differences on Windows platforms. On Windows the shared memory block in User mode now includes the user's home path (which contains the user's username).
-
Explicitly getting absolute path of the user's home directory as on Unix a relative path (
~
) may be returned.
-
Fixed bug on Windows when username containing wide characters causes the library to crash.
Le Liu
-
Allows the application path and version to be excluded from the server name hash. The following flags were added for this purpose:
SingleApplication::Mode::ExcludeAppVersion
SingleApplication::Mode::ExcludeAppPath
-
Allow a non elevated process to connect to a local server created by an elevated process run by the same user on Windows
-
Fixes a problem with upper case letters in paths on Windows
Le Liu
- Deprecated secondary instances count.
- Added a sendMessage() method to send a message to the primary instance.
- Added a receivedMessage() signal, emitted when a message is received from a secondary instance.
- The SingleApplication constructor's third parameter is now a bool specifying if the current instance should be allowed to run as a secondary instance if there is already a primary instance.
- The SingleApplication constructor accept a fourth parameter specifying if the SingleApplication block should be User-wide or System-wide.
- SingleApplication no longer relies on
applicationName
andorganizationName
to be set. It instead concatenates all of the following data and computes aSHA256
hash which is used as the key of theQSharedMemory
block and theQLocalServer
. Since at leastapplicationFilePath
is always present there is no need to explicitly set any of the following prior to initialisingSingleApplication
.QCoreApplication::applicationName
QCoreApplication::applicationVersion
QCoreApplication::applicationFilePath
QCoreApplication::organizationName
QCoreApplication::organizationDomain
- User name or home directory path if in User mode
- The primary instance is no longer notified when a secondary instance had
been started by default. A
Mode
flag for this feature exists. - Added
instanceNumber()
which represents a unique identifier for each secondary instance started. When called from the primary instance will return0
.
- Stability improvements
- Support for secondary instances.
- The library now recovers safely after the primary process has crashed and the shared memory had not been deleted.
-
Improved pimpl design and inheritance safety.
Vladislav Pyatnichenko
- The
QAPPLICATION_CLASS
macro can now be defined in the file including the Single Application header or with aDEFINES+=
statement in the project file.
-
A race condition can no longer occur when starting two processes nearly simultaneously.
Fix issue #3
-
SingleApplication is now being passed a reference to
argc
instead of a copy.Fix issue #1
-
Improved documentation.