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 --- examples/sending_arguments/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/sending_arguments/main.cpp b/examples/sending_arguments/main.cpp index d90b250..a9d34dd 100755 --- a/examples/sending_arguments/main.cpp +++ b/examples/sending_arguments/main.cpp @@ -11,6 +11,9 @@ int main(int argc, char *argv[]) // If this is a secondary instance if( app.isSecondary() ) { app.sendMessage( app.arguments().join(' ').toUtf8() ); + qDebug() << "App already running."; + qDebug() << "Primary instance PID: " << app.primaryPid(); + qDebug() << "Primary instance user: " << app.primaryUser(); return 0; } else { QObject::connect( -- cgit v1.2.1