From 81cc2719beab0317b52764e8cf56afd8f56b0c89 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Tue, 3 Mar 2020 01:22:54 +0000 Subject: v3.1.0a Added primaryUser() Closes #95 --- singleapplication.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'singleapplication.h') diff --git a/singleapplication.h b/singleapplication.h index cb50597..f91e3a2 100644 --- a/singleapplication.h +++ b/singleapplication.h @@ -112,6 +112,12 @@ public: */ qint64 primaryPid(); + /** + * @brief Returns the username of the user running the primary instance + * @returns {QString} + */ + QString primaryUser(); + /** * @brief Sends a message to the primary instance. Returns true on success. * @param {int} timeout - Timeout for connecting -- cgit v1.2.1