discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pb with app wrapper


From: Enrico Sersale
Subject: Re: Pb with app wrapper
Date: Wed, 18 Oct 2000 01:13:14 +0300 (EEST)

On Tue, 17 Oct 2000, David Relson wrote:

> At 07:11 PM 10/16/00, you wrote:
> Enrico Sersale a ?crit :
>  >
>  > On Mon, 16 Oct 2000, Alfred le Grand wrote:
>  >
>  > > Hi,
>  > >
>  > > I'm trying to create an .app wrapper for the acroread utility.
>  > > right now, the app correctly starts from GWorkspace but the .pdf files
>  > > are still
>  > > not recognized. Has anyone some idea of whats wrong?
>  > >
>  > ...
>  > > Acrobat.app/
>  > > Acrobat*  Acrobat.tiff  FileIcon_.pdf.tiff  Resources/
>  >
>  > What is there in "Acrobat*"?
> 
> 
> The listing looks fine to me.  I get listing like that all the time.  It's 
> simply 'ls -F' which appends indicators to entries to indicate links ('@'), 
> directories ('/'), executables ('*'), etc.  Look at the man page for ls.
> 
> David

I mean the *content* of the file (symbolic link or not).
For example, the "vi" executable in the wrapper "vi.app", to pass to vi 
the file path to open, looks so:

#!/bin/sh

usage()
{
echo Usage: `basename $0` '[ -GSFilePath file ]'
exit 2
}

if [ $# -eq 2 ] ; then
  if [ "$1" = "-GSFilePath" ] ; then
    file=$2
  else
    usage
  fi
elif [ $# -eq 0 ] ; then
  file=
else
  usage
fi

xterm -e vi $file &


or, in the case of a X app, simply:

#!/bin/sh

nedit $2 &







reply via email to

[Prev in Thread] Current Thread [Next in Thread]