[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Review requested of the enclosed
From:       Stephan Kulow <coolo () max ! tat ! physik ! uni-tuebingen ! de>
Date:       1999-07-11 19:58:08
[Download RAW message or body]

Troy Engel wrote:
> 
> The author of katchit came up with a nifty idea of restarting the KDE
> kpanel, so that icons added (ie, .kdelnk files) show up for users who
> don't understand why they don't automatically.  As such, I wrote a tad
> of shellscript that needs to work across all platforms with RPM and
> would like to know if it could fail on any of them (mainly related to
> the usage of 'ps'?):
> 
> %post
> kptest=`ps h -C kpanel`
> if [ -n "$kptest" ]; then
>   kwmcom kpanel:restart
> fi
> 
> I'm thinking about adding it to all my future RPM packages
> (http://kde.tdyc.com) and am interested in any feedback, either yea or
> nay in manner.

Why do you test for ps? Just kwmcom would be do nothing if kpanel won't
run :)

In KDE 2.0 you won't have this problem anymore. And besides that - I
think,
ps's output is as portable as your binaries will be ;)

Greetings, Stephan

-- 
KDEDIR is dead, long lives KDEDIRS - the winner takes it all

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic