On Thu, Aug 10, 2000 at 11:39:49PM +0200, Christian Marillat wrote:
> >>>> "BC" == Ben Collins <[EMAIL PROTECTED]> writes:
> 
> [...]
> 
> BC> THe correct thing would be to fail if sawfish is running, in the pre-inst.
> BC> Force the user to upgrade at a console. Lot's of things like XDM and GDM,
> BC> do this aswell. It is the only sane way. Folks who do upgrades, are always
> BC> advised to do it from a tty, and not in X, anyway.
> 
> Yes, of course.
> 
> My postinst script is:
> 
> # restart sawfish
>     if [ `pidof sawfish` ]; then
>        sawfish-client -display :0.0 -f restart
>     fi

You missed the point. It should be in preinst as:

        if [ `pidof sawfish` ]; then
                echo "You need to quit sawfish before upgrading to avoid problem."
                exit 1
        fi

- Ben

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  --  [EMAIL PROTECTED]  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to