diff options
author | Itay Grudev <itay+github.com@grudev.com> | 2020-03-03 01:29:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-03 01:29:50 +0000 |
commit | 4abe20afbfa5695ac7a9bce1298943b645aeffe9 (patch) | |
tree | 596bf4f020748b45b7bf1f262281bb477077ac79 /examples | |
parent | Merge pull request #94 from itay-grudev/qwertysam (diff) | |
parent | v3.1.0a Added primaryUser() (diff) | |
download | singleapplication-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-x | examples/sending_arguments/main.cpp | 3 |
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( |