On Sun, 2004-09-12 at 19:51, Michael Torrie wrote:

> Honestly it sounds very dangerous to me.  If all distros had this set
> up, then viruses and worms would propagate like crazy.  In fact doing so
> is the same mistake that MS made.  I can just hand you a .jpg file, make
> it executable and then you run it.  On linux, the extension doesn't
> matter, so the file can be an elf executable.  I would strongly urge
> against setting up any system like that.

I also want to add, that if you want to set up a system to emulate the
OS X "open" command, that's fine.  Just write a robust script that
checks the input file with the "file" command to ensure it's the right
type of file before handing it off to the designated handler.  I think
that from a script you could interface with the Gnome or KDE mime-type
handlers lists.  I'm actually a bit surprised that KDE and Gnome don't
both come with a "open" command line utility that can launch apps and
open known file types through the respective mimetype mechanisms.

Michael


> 
> Michael
-- 
Michael Torrie <[EMAIL PROTECTED]>

____________________
BYU Unix Users Group 
http://uug.byu.edu/ 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to