KDE menu items for 644_1 -> wrapper scripts not working

Martin Blapp mb at imp.ch
Tue Apr 29 08:03:36 PDT 2003


Hi,

> I'd expect this to be the wrapper script. Its contents is:
>
> #!/bin/sh
>
> cmd=`dirname "$0"`/soffice
> exec "$cmd" -math "$@"
>
> Clearly, there is no "cd to program directory" here and this is why the
> splashscreen problem appears. Everythign works fine if I modify the
> wrapper as such:
>
> #!/bin/sh
>
> cd `dirname "$0"`
> exec ./soffice -math "$@"

huh ?

I see this wrapper script here ...

case $program in
$0)
        cd $oopath && ./soffice "$@"
        ;;
        *)
        cd $oopath && exec ./$program "$@"
        ;;
esac


More information about the freebsd-openoffice mailing list