[Kwintv] Patch for various stuff that I didnt like

Stefan Gehn sgehn at gmx.net
Fri Jul 9 21:37:13 CEST 2004


On Freitag Juli 9 2004 19:59, Dirk Ziegelmeier wrote:
> On Friday 09 July 2004 19:10, Stefan Gehn wrote:
> > On Freitag Juli 9 2004 18:43, Dirk Ziegelmeier wrote:
> > > On Friday 09 July 2004 17:12, Stefan Gehn wrote:
> > > For me, a KUniqueApp would be sufficient too, but there is no point
> > > crippling it to a unique app when it acutally can handle multiple
> > > instances.
> >
> > That's why Noatun and some other apps have that configurable.
>
> OK, I'd like that. Feel free to provide a patch.

Will do so, hopefully by the end of this weekend.

> > So kdelirc being too dumb to find a running kdetv instance is the fault
> > of my system? I don't think so.
>
> But also surely not a limitation or bug of kdetv... The "fault" of your
> system is to use your remote buttons in an incompatible way. Fix KDELIRC
> instead.

Hmm indeed, I'm starting to confuse all the apps I recently installed LOL. 
Sorry :/

But lets get a bit offtopic *g*, what is incompatible about making the tv 
button start the tv application? Both ways of doing that (one through kdelirc 
klauncher-preset, other one by using the "just start application" function 
for kdetv) result in kdetv being started multiple times regardless of the 
setting to start it only if it's not yet running.

Using multiple instances of a dcop app easily breaks dcop-interaction it 
seems. You either have to start iterating over the list of running dcop apps 
and use the first one starting with "kdetv-" (might as well be another app 
named like that) or you won't be able to find the app. I don't think that's a 
nice way to handle multiple instance of a dcop-enabled application.

> > > > There's another little buglet when you exit kdetv while in tvmode, it
> > > > shows the main window (with no contents) before actually exiting. I
> > > > didn't look into this yet but may do so later.
> > >
> > > On shutdown, kdetv saves the window positions. Therefore, it has to
> > > switch back to normal mode.
> >
> > Why not save the last window position before switching modes? That would
> > essentially do the same and won't cost too much (as KConfig is buffered
> > AFAIK).
>
> If you like, provide a patch. I'm working on other things ATM.

Sure, if I manage to find out where to window creation and switching takes 
place (shouldn't be that hard, so far I found kdetv to be pretty 
straightforward code-wise).

Bye, Stefan aka mETz
-- 
ICQ#51123152 | Moege der Pinguin mit euch sein


More information about the kwintv mailing list