![]() Registered Member ![]()
|
[SOLVED] Send arguments to a to a process already running (KUniqueApplication)
Wed Jan 14, 2009 8:28 pm
Hi,
My application is a KUniqueApplication. I run it with some arguments: "myapp --load /path/to/a/file" And the application loads my file When I run my application one more time "myapp --load /path/to/another/file", the application does not run ; the process is already running. I want my second instance sends a command to the first one in order to load that second file. How to do that? |
![]() KDE Developer ![]()
|
[SOLVED] Send arguments to a to a process already running (KUniqueApplication)
Thu Jan 15, 2009 2:52 pm
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
![]() Registered Member ![]()
|
[SOLVED] Send arguments to a to a process already running (KUniqueApplication)
Thu Jan 15, 2009 10:20 pm
Thanks, it works very well :shade:
But I have another problem now. My app returns
|
![]() Registered Member ![]()
|
[SOLVED] Send arguments to a to a process already running (KUniqueApplication)
Thu Jan 15, 2009 10:24 pm
OK solved!
|
![]() Administrator ![]()
|
[SOLVED] Send arguments to a to a process already running (KUniqueApplication)
Fri Jan 16, 2009 2:26 am
If this issue has been resolved, please mark it as solved. Thanks in advance.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Mentor ![]()
|
[SOLVED] Send arguments to a to a process already running (KUniqueApplication)
Fri Jan 16, 2009 6:54 am
Could you describe how you solved it. If someone is searching for the same error message and gets to this thread he can find a solution. ![]() [size=x-small]code | [url=cia.vc/stats/author/msoeken]cia.vc[/url] | [url=kde.org/support]donating KDE[/url] | [url=tinyurl.com/cto4ns]wishlist[/url][/size] |
![]() Registered Member ![]()
|
Just in case someone might be interested, I have found a way to create a unique application instance having a look at KTorrent main.cpp file - http://ktorrent.org/?q=downloads
There will also be available in a few days another example in KVirusTotal code, the program I'm developing - http://kde-apps.org/content/show.php?content=139065 Best regards. ![]() |
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]