SingleApplication/CHANGELOG.md

104 lines
3.5 KiB
Markdown
Raw Normal View History

Changelog
=========
__3.0.3a__
----------
* Removed Microsoft Windows specific code for getting username due to
multiple problems and compiler differences on Windows platforms. On
2017-01-25 01:28:14 +08:00
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.
2016-11-27 19:11:14 +08:00
__3.0.2a__
----------
2016-11-29 01:44:58 +08:00
* Fixed bug on Windows when username containing wide characters causes the
2016-11-27 19:11:14 +08:00
library to crash.
_Le Liu_
__3.0.1a__
2016-11-27 19:11:14 +08:00
----------
* 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__
---------
* Depricated secondary instances count.
2016-08-10 09:42:46 +08:00
* Added a sendMessage() method to send a message to the primary instance.
* Added a receivedMessage() signal, emitted when a message is received from a
2016-08-10 09:42:46 +08:00
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
2016-12-03 05:12:31 +08:00
instance if there is already a primary instance.
2016-08-10 09:42:46 +08:00
* 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
2016-12-03 05:12:31 +08:00
data and computes a `SHA256` hash which is used as the key of the
2016-08-10 09:42:46 +08:00
`QSharedMemory` block and the `QLocalServer`. Since at least
`applicationFilePath` is always present there is no need to explicitly set
2016-12-03 05:12:31 +08:00
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
2016-08-10 09:42:46 +08:00
* The primary instance is no longer notified when a secondary instance had
2016-12-03 05:12:31 +08:00
been started by default. A `Mode` flag for this feature exists.
* Added `instanceNumber()` which represents a unique identifier for each
2016-08-10 09:42:46 +08:00
secondary instance started. When called from the primary instance will
return `0`.
__v2.4__
2016-08-15 19:42:16 +08:00
--------
2016-08-10 09:42:46 +08:00
* Stability improvements
* Support for secondary instances.
* The library now recovers safely after the primary process has crashed
2016-08-10 09:42:46 +08:00
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.