[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: How to Make KPPP a KUniqueApplication?
From: Harri Porten <porten () trolltech ! com>
Date: 2002-04-14 0:08:34
[Download RAW message or body]
On Sat, 13 Apr 2002, markcox wrote:
> It appears to work, and the UI behaves just fine, but as soon as you click the
> "connect" button kppp freezes. Is there a reason that kppp can't be a
> KUniqueApplication?
kppp is often installed with a +s permission and forks into a backend and
a GUI running with regular user rights. This could easily lead to problems
(different user permissions, zombie backend processes). I fear you'll have
to debug this further. 'ps aux | grep kppp' will help you telling which
instances are currently running.
> - KApplication a;
> + // Using KUniqueApplication means that if kppp is already running,
> + // then it will be brought to the front by the magic of dcop.
> + if (!KUniqueApplication::start())
> + return 0;
> +
> + KUniqueApplication a;
This change is probably not enough as kppp already has some logic to just
have a single instance running at the same time (pid file introduced in
pre-DCOP times).
Theoretically this limitation doesn't even make sense but does somebody
have two modems and two phone lines to test multiple connections?)
Harri.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic