From owner-freebsd-openoffice@FreeBSD.ORG Tue Apr 29 08:03:35 2003 Return-Path: Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9D9737B401 for ; Tue, 29 Apr 2003 08:03:35 -0700 (PDT) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 776C643F85 for ; Tue, 29 Apr 2003 08:03:34 -0700 (PDT) (envelope-from mb@imp.ch) Received: from cvs.imp.ch (cvs.imp.ch [157.161.4.9]) by mail.imp.ch (8.12.6p2/8.12.3) with ESMTP id h3TF3UCa017245; Tue, 29 Apr 2003 17:03:31 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Date: Tue, 29 Apr 2003 17:03:30 +0200 (CEST) From: Martin Blapp To: Bartosz Fabianowski In-Reply-To: <3EAE9132.5080304@chillt.de> Message-ID: <20030429170306.J33100@cvs.imp.ch> References: <3EAE9132.5080304@chillt.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-openoffice@freebsd.org Subject: Re: KDE menu items for 644_1 -> wrapper scripts not working X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 15:03:36 -0000 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