From kde-core-devel Fri Oct 22 17:36:29 1999 From: Waldo Bastian Date: Fri, 22 Oct 1999 17:36:29 +0000 To: kde-core-devel Subject: Re: KUniqueApplication available X-MARC-Message: https://marc.info/?l=kde-core-devel&m=94061402814968 On Tue, 19 Oct 1999, Dirk A. Mueller wrote: > Harri Porten wrote: > > > I'm not sure whether uniqueness should be user configurable. It's > > something a programmer wants to enforce to prevent users from damaging > > config files when accessing them with several apps as once. > > but there might be cases where it SHOULD be user configurable. i.e. > playing multiple video streams versa playing always only one video > stream. > > if it forces the developer to hardcode the behaviour, it's bad. It's a design decision whether your application can play two streams at a time or only one at a time. If you can only play one at a time and it is possible to run multiple instances simultaneously, you should use a normal KApplication. In other cases you should probably use KUniqueApplication since a single process can handle the desired behaviour in that case. User preferences should be implemented by the application itself. The choice between kapplication and kuniqueapplication is about the design/implementation of your program. That's none of the users business. Cheers, Waldo