KUniqueApplication and dcopClient()->registerAs()
Andras Mantia
amantia at kde.org
Fri Apr 30 14:51:14 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have a problem with KUniqueApplication when the application is
registered with a different name, namely it will not detect that the
application is already running. :-( In order to make the CVS HEAD and
stable Quanta runnable side by side, the first is named as quanta_be
and the second as quanta. They have different data directories
(share/apps/quanta_be and share/apps/quanta), but otherwise they should
work the same way, so they are registered as "quanta". The problem is
that KUniqueApplication doesn't notice that one instance of quanta_be
is already running. I failed to find out how can I force it to detect.
Of course if I create a KAboutData with "quanta" as the first parameter
and pass it to KCmdLineArgs::init() it will detect, but than it will
try to use the resources from /share/apps/quanta..
Do you have any idea what can I do?
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)
iD8DBQFAklnSTQdfac6L/08RAsvKAKCqmQyN6+RfSM8OMZ4c+XsOBpftNQCfYXZA
+jcACLclE5iPBEWyl2ERVP8=
=MuOH
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list