I would guess that a custom solution for this would be difficult if you
really don't know anything about the environment it is running in.. for
example, where do users have their apps installed??  If said tool is being
built for a known environment then it is easy, right?  :)
If there is a list of preferred and common utilities you want to suggest,
you could use which, whereis, etc to confirm their existence and location...
but for the most generalized solution I think you'd be best using existing
tools in KDE or Gnome since they're the most common.

So, what about ncurses?  You like it?  There is a curses module for Lua at
http://www.t2-project.org/packages/lua-curses.html but I'm not clear what
you're getting at...

Ben


On Thu, Apr 21, 2011 at 4:37 PM, <brads...@fastmail.us> wrote:

> How about using ncurses?
> Sent via BlackBerry by AT&T
>
> -----Original Message-----
> From: larry price <lapr...@gmail.com>
> Sender: euglug-boun...@euglug.org
> Date: Thu, 21 Apr 2011 16:05:45
> To: Eugene Unix and Gnu/Linux User Group<euglug@euglug.org>
> Reply-To: Eugene Unix and Gnu/Linux User Group <euglug@euglug.org>
> Subject: Re: [Eug-lug] How to summon the "open with" dialog from a bash
>  command line?
>
> Ben is correct, this is going to be different from one window manager
> to the next.
>
> Here's a nice intro to gnome-open which is what you would want to use on
> ubuntu
>
> http://embraceubuntu.com/2006/12/16/gnome-open-open-anything-from-the-command-line/
>
> in OS X you would use open
>
> But for historical reasons this means something completely different
> in the world of linux (usually but not always an alias for openvt),
> which only works when you are using the console, and will fail if you
> are in a GUI.
>
> On Thu, Apr 21, 2011 at 3:53 PM, Ben Barrett <stircrazy...@gmail.com>
> wrote:
> > I believe that would be dependent on your window manager, or at least
> that
> > you could summon a Gnome or KDE panel only if those libraries were
> available
> > on the given system.... so you may have trouble making something open
> > everywhere unless you make your own X component for it or find one to
> > re-use... you might be able to look into Nautilus (gnome) or Konqueror
> (kde)
> > file browsers for a nice function...
> > Don't know more, but this set off some blinky warning lights in my head
> :)
> >
> > Ben
> >
> >
> > On Thu, Apr 21, 2011 at 2:43 PM, marbux <mar...@gmail.com> wrote:
> >>
> >> Hi, all,
> >>
> >> I'm working on a cross-platform Lua script that needs to, inter alia,
> >> summon an "Open With" dialog from a Bash command line, the dialog that
> >> typically pops up when a file has no app associated with it in the
> >> environment. But I'm having no luck finding how to do that. Anyone
> >> here happen to know the answer or some keywords that might help me
> >> track it down?
> >>
> >> FWIW and in case it's of any use to someone else, I found the
> >> equivalent command line for Windows:
> >>
> >> Rundll32.exe shell32.dll, OpenAs_RunDLL [filepath]
> >>
> >> Thanks in advance,
> >>
> >> Paul
> >> _______________________________________________
> >> EUGLUG mailing list
> >> euglug@euglug.org
> >> http://www.euglug.org/mailman/listinfo/euglug
> >
> >
> > _______________________________________________
> > EUGLUG mailing list
> > euglug@euglug.org
> > http://www.euglug.org/mailman/listinfo/euglug
> >
> >
> _______________________________________________
> EUGLUG mailing list
> euglug@euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
> _______________________________________________
> EUGLUG mailing list
> euglug@euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
_______________________________________________
EUGLUG mailing list
euglug@euglug.org
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to