There is a mock-up of a new "launch" command in "task" script. http://www.jsoftware.com/jwiki/OlegKobchenko/Task
Besides the said funcionality it is meant to act as replacement for '~system/extras/util/browser.ijs' It will have default logic mainly for Windows and Mac, but also gnome-open for Linux, but also will need a configuration entry in External Applications, Application Launcher for LAUNCH_j_. For Linux, in case `which `,LAUNCH_j_ fails it would use the logic currently done in for web browser. --- [EMAIL PROTECTED] wrote: > No. Not in general, at least. There are a few desktop environments > which provide such a facility, but they all do it in their own way. > ".mailcap" for mime type-based defined actions is kind of a common > approach in this context but, however, don't build upon that and > foremost: don't mess around with it. (Also: don't expect everybody > to use one those desktop systems.) --- bill lam <[EMAIL PROTECTED]> wrote: > You may try xdg-open > > xdg-open ~ > xdg-open ~/data/foo.jpg > xdg-open http://jsoftware.com --- "Sherlock, Ric" <[EMAIL PROTECTED]> wrote: > I would also be interested in an answer to this. I investigated this > last year and came to the conclusion that there is no generic answer and > that it probably depends on the actual Linux flavour that you use. I'd > be happy to be proved wrong! > > For Ubuntu and Gnome I successfully used the following sentence to open > *.xls files in Open Office. > 2!:0 'gnome-open ',fln > where 'fln' was the filename of my *.xls file. --- Oleg Kobchenko wrote: > Is there a commend-line launcher in Linux that > will open default application for passed parameter > depending on whether it is URL, file or folder and > based on its extension or mime type. > > For example in Window there "start" and on Mac > there is "open", which are equivalent of double-clicking > the item in file explorer. For example, > > start d:\j602 - opens folder in explorer > start d:\j602\bin\installer.txt - opens text editor > start d:\j602\help.htm - opens web browser > start http://jsoftware.com - opens web browser ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
