[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Review requested of the enclosed
From: Richard Moore <rich () ipso-facto ! freeserve ! co ! uk>
Date: 1999-07-11 23:23:36
[Download RAW message or body]
Stephan Kulow wrote:
>
> 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 ;)
I'm not sure that the args given to ps will be portable, what about the
differences between BSD style ps (eg. ps -aux or ps aux) and the System
V style (eg. ps -ef)?
Rich.
>
> Greetings, Stephan
>
> --
> KDEDIR is dead, long lives KDEDIRS - the winner takes it all
--
Richard Moore rich@ipso-facto.freeserve.co.uk
http://www.robocast.com/ richard@robocast.com
http://developer.kde.org/ rich@kde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic