Two things that can be taken for granted:
* Script will be run on Linux system
* Script will be run under Gnome desktop environment
--
Posted via http://www.ruby-forum.com/.
Zenity should do the job for you. In IRB try:
file = `zenity --file-selection` #=> '/home/yeban/foo'
Also, see man zenity for more widgets.
--
Anurag Priyam
http://about.me/yeban/
In case you don't have zenity but tk:
`wish <(echo 'puts [tk_getOpenFile]; exit')`
Also see http://tmml.sourceforge.net/doc/tk/getOpenFile.html
--
Michael Fellinger
CTO, The Rubyists, LLC