From kde-core-devel Fri Apr 30 16:19:51 2004 From: Andras Mantia Date: Fri, 30 Apr 2004 16:19:51 +0000 To: kde-core-devel Subject: Re: KUniqueApplication and dcopClient()->registerAs() Message-Id: <200404301919.51691.amantia () freemail ! hu> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=108334207131198 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Friday 30 April 2004 17:27, Waldo Bastian wrote: > if (!KUniqueApplication::start()) > { > fprintf(stderr, "quanta is already running!\n"); > exit(0); > } > if > (KUniqueApplication::dcopClient()->isApplicationRegistered("quanta_be >")) { > DCOPRef("quanta_be", "quanta_be").call("newInstance()"); // > Activate it fprintf(stderr, "quanta_be is already running!\n"); This looks good, and works (a little), the problem is how can I pass the command line arguments to the running instance? I tried the same way as it's in KUniqueApplication::start(), but it crashes the running instance. Andras - -- Quanta Plus developer - http://quanta.sourceforge.net K Desktop Environment - http://www.kde.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAknynTQdfac6L/08RAiKGAJ9RysBj0g5/K6AsqJPWX38HdXfDKQCgsNob mzjhXnjNgrR/nagHsXu81dw= =aRfB -----END PGP SIGNATURE-----