[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KUniqueApplication and dcopClient()->registerAs()
From: Andras Mantia <amantia () freemail ! hu>
Date: 2004-04-30 16:19:51
Message-ID: 200404301919.51691.amantia () freemail ! hu
[Download RAW message or body]
-----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-----
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic