discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep "open" tool


From: Gregory Casamento
Subject: Re: GNUstep "open" tool
Date: Sat, 24 Nov 2001 09:09:50 -0800 (PST)

--- Dan Pascu <dan@services.iiruc.ro> wrote:
> On 23 Nov, Gregory Casamento wrote:
> > My plan is to make gopen a clone of the open command under OPENSTEP/MOSX. 
> I
>
> From what it seems one that satisfies both cannot be done, since
> OPENSTEP has openapp/open which behave as you describe, while MOSX
> merged both in open, and open behaves as the sent patch makes gopen
> behave.

I have searched on both of my OPENSTEP4.2/Mach boxes and there isn't an
"openapp" command present.   The submitted patch, from what I can see, searches
manually through the paths.   A simple call to launchApplication in NSWorkspace
should suffice to search for the application in the well-known areas.
 
> > Nonetheless, this is not how the "open" command on OPENSTEP/MOSX behaves. 
> If
> > the user types:
> > 
> > open XYZ.app
> > 
> > and XYZ.app is not in the current directory then an error is issued.  If
> the
> > user types:
> > 
> > open -a XYZ.app
> > 
> > *then* the app is searched for and started if it is in one of the
> "well-known"
> > directories.
> 
> from what people using MOSX said, indeed on OPENSTEP doesn't search for
> app, but it seems MOSX does search for the app first in current dir
> then in system/local/... even without -a. And it should be, because
> MOSX does no longer have openapp, just open to do both tasks.

This is simple enough to handle.  If the "gopen" command doesn't find the
application in the current directory it will attempt to launch it from one of
the well-known directories.
 
> > 
> >> Anyway, I think the patch doesn't affect behavior for openapp/gopen for
> >> people used with the old way, just adds an extra useful feature.
> > 
> > If the everyone wants this functionaliy, I'll add the patch in. 
> 
> I think that as long as you don't break compatibility, just make it a
> bit more useful and easier to use it ok. 

It's main utility is to open files associated with given applications (i.e.
Gorm.app for gorm files, Ink.app for .txt or .rtf files and etc.).  It *is*
useful for that now.

> -- 
> Dan
> 



=====
Gregory John Casamento
------------------------------------------------------
Please sign the petition against software patents at:
http://www.petitiononline.com/pasp01/petition.html
------------------------------------------------------

__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



reply via email to

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