KUniqueApplication and dcopClient()->registerAs()

Andras Mantia amantia at freemail.hu
Fri Apr 30 17:19:51 BST 2004


-----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-----





More information about the kde-core-devel mailing list