aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorItay Grudev <itay+github.com@grudev.com>2020-03-03 01:29:50 +0000
committerGitHub <noreply@github.com>2020-03-03 01:29:50 +0000
commit4abe20afbfa5695ac7a9bce1298943b645aeffe9 (patch)
tree596bf4f020748b45b7bf1f262281bb477077ac79 /examples
parentMerge pull request #94 from itay-grudev/qwertysam (diff)
parentv3.1.0a Added primaryUser() (diff)
downloadsingleapplication-4abe20afbfa5695ac7a9bce1298943b645aeffe9.tar.xz
Merge pull request #96 from itay-grudev/primary_userv3.1.0a
v3.1.0a Added primaryUser()
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/sending_arguments/main.cpp3
1 files changed, 3 insertions, 0 deletions
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(