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

Re: [sup-talk] mime-view.rb: content_type not found



Excerpts from Shadowfirebird's message of Sat Oct 23 22:28:29 +1300 2010:
> > I might be wrong, but I seem to remember that the mime type checking
> > depends on some funky debian/ubuntu script. I ran into this when I tried
> > to get this to work:
> > http://sup.rubyforge.org/wiki/wiki.pl?ViewingAttachments
> 
> Has *anyone* got mime-view.rb working?  If so, what OS?
> 

I guess I have it going, I use a standard OSX configuration.

mime-view.rb:

    system "open '#{filename}'"

>From the open man page "The open command opens a file (or a directory
or URL), just as if you had double-clicked the file's icon."

If you are on linux you may want to try xdg-open and iirc you can use 
'cmd /c start' on windows.
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk