mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-30 06:38:49 +03:00
53f45bdb1c
This introduces a new version of SingleApplication as well.
295 lines
8 KiB
Markdown
295 lines
8 KiB
Markdown
Changelog
|
|
=========
|
|
|
|
If by accident I have forgotten to credit someone in the CHANGELOG, email me and I will fix it.
|
|
|
|
__3.2.0__
|
|
---------
|
|
|
|
* Added support for Qt 6 - _Jonas Kvinge_
|
|
* Fixed warning in `Qt 5.9` with `min`/`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` to `quint32` and Clang Tidy warnings - _Hennadii Chernyshchyk_
|
|
|
|
__3.1.5__
|
|
---------
|
|
|
|
* 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's `QLocalServer`.
|
|
|
|
__3.1.4__
|
|
---------
|
|
* Officially supporting and build-testing against Qt 5.15
|
|
* Fixed an MSVC C4996 warning that suggests using `strncpy_s`.
|
|
|
|
_Hennadii Chernyshchyk_
|
|
|
|
__3.1.3.1__
|
|
---------
|
|
* CMake build system improvements
|
|
* Fixed Clang Tidy warnings
|
|
|
|
_Hennadii Chernyshchyk_
|
|
|
|
__3.1.3__
|
|
---------
|
|
* Improved `CMakeLists.txt`
|
|
|
|
_Hennadii Chernyshchyk_
|
|
|
|
__3.1.2__
|
|
---------
|
|
|
|
* Fix a crash when exiting an application on Android and iOS
|
|
|
|
_Emeric Grange_
|
|
|
|
__3.1.1a__
|
|
----------
|
|
|
|
* Added currentUser() method that returns the user the current instance is running as.
|
|
|
|
_Leander Schulten_
|
|
|
|
__3.1.0a__
|
|
----------
|
|
|
|
* Added primaryUser() method that returns the user the primary instance is running as.
|
|
|
|
__3.0.19__
|
|
----------
|
|
|
|
* Fixed code warning for depricated functions in Qt 5.10 related to `QTime` and `qrand()`.
|
|
|
|
_Hennadii Chernyshchyk_
|
|
_Anton Filimonov_
|
|
_Jonas Kvinge_
|
|
|
|
__3.0.18__
|
|
----------
|
|
|
|
* 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_
|
|
|
|
__3.0.17__
|
|
----------
|
|
|
|
* Fixed compilation warning/error caused by `geteuid()` on unix based systems.
|
|
|
|
_Iakov Kirilenko_
|
|
|
|
* Added CMake support
|
|
|
|
_Hennadii Chernyshchyk_
|
|
|
|
__3.0.16__
|
|
----------
|
|
|
|
* Use geteuid and getpwuid to get username on Unix, fallback to environment variable.
|
|
|
|
_Jonas Kvinge_
|
|
|
|
__3.0.15__
|
|
----------
|
|
|
|
* Bug Fix: sendMessage() might return false even though data was actually written.
|
|
|
|
_Jonas Kvinge_
|
|
|
|
__3.0.14__
|
|
----------
|
|
|
|
* Fixed uninitialised variables in the `SingleApplicationPrivate` constructor.
|
|
|
|
__3.0.13a__
|
|
----------
|
|
|
|
* Process socket events asynchronously
|
|
* Fix undefined variable error on Windows
|
|
|
|
_Francis Giraldeau_
|
|
|
|
__3.0.12a__
|
|
----------
|
|
|
|
* Removed signal handling.
|
|
|
|
__3.0.11a__
|
|
----------
|
|
|
|
* 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` and `qCritical` when the library is unable to initialise
|
|
correctly.
|
|
|
|
__3.0.10__
|
|
----------
|
|
|
|
* Removed C style casts and eliminated all clang warnings. Fixed `instanceId`
|
|
reading from only one byte in the message deserialization. Cleaned up
|
|
serialization code using `QDataStream`. Changed connection type to use
|
|
`quint8 enum` rather than `char`.
|
|
* Renamed `SingleAppConnectionType` to `ConnectionType`. Added initialization
|
|
values to all `ConnectionType` enum cases.
|
|
|
|
_Jedidiah Buck McCready_
|
|
|
|
__3.0.9__
|
|
---------
|
|
|
|
* 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_
|
|
|
|
__3.0.8__
|
|
---------
|
|
|
|
* Bug fix - changed QApplication::instance() to QCoreApplication::instance()
|
|
|
|
_Evgeniy Bazhenov_
|
|
|
|
__3.0.7a__
|
|
----------
|
|
|
|
* 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.
|
|
|
|
__3.0.6a__
|
|
----------
|
|
|
|
* 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.
|
|
|
|
__3.0.5a__
|
|
----------
|
|
|
|
* Fixed a memory leak in the SingleApplicationPrivate destructor.
|
|
|
|
_Sergei Moiseev_
|
|
|
|
__3.0.4a__
|
|
----------
|
|
|
|
* Fixed shadow and uninitialised variable warnings.
|
|
|
|
_Paul Walmsley_
|
|
|
|
__3.0.3a__
|
|
----------
|
|
|
|
* 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.
|
|
|
|
__3.0.2a__
|
|
----------
|
|
|
|
* Fixed bug on Windows when username containing wide characters causes the
|
|
library to crash.
|
|
|
|
_Le Liu_
|
|
|
|
__3.0.1a__
|
|
----------
|
|
|
|
* 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_
|
|
|
|
__v3.0a__
|
|
---------
|
|
|
|
* 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` and
|
|
`organizationName` to be set. It instead concatenates all of the following
|
|
data and computes a `SHA256` hash which is used as the key of the
|
|
`QSharedMemory` block and the `QLocalServer`. Since at least
|
|
`applicationFilePath` is always present there is no need to explicitly set
|
|
any of the following prior to initialising `SingleApplication`.
|
|
* `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
|
|
return `0`.
|
|
|
|
__v2.4__
|
|
--------
|
|
|
|
* 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.
|
|
|
|
__v2.3__
|
|
--------
|
|
|
|
* Improved pimpl design and inheritance safety.
|
|
|
|
_Vladislav Pyatnichenko_
|
|
|
|
__v2.2__
|
|
--------
|
|
|
|
* The `QAPPLICATION_CLASS` macro can now be defined in the file including the
|
|
Single Application header or with a `DEFINES+=` statement in the project file.
|
|
|
|
__v2.1__
|
|
--------
|
|
|
|
* A race condition can no longer occur when starting two processes nearly
|
|
simultaneously.
|
|
|
|
Fix issue [#3](https://github.com/itay-grudev/SingleApplication/issues/3)
|
|
|
|
__v2.0__
|
|
--------
|
|
|
|
* SingleApplication is now being passed a reference to `argc` instead of a
|
|
copy.
|
|
|
|
Fix issue [#1](https://github.com/itay-grudev/SingleApplication/issues/1)
|
|
|
|
* Improved documentation.
|