• Post Reply Bookmark Topic Watch Topic
  • New Topic

setting file association  RSS feed

 
sonny kher
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I set up file associations in unix/linux so that a certain extension is always handled by a particular applicaiton. What I am referring to are streaming audio files on my box that netscape always prompts me to store even though I have media players that can handle such content.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Unices don't use file name extensions to recognize type; they use a "magic number" stored in the first two bytes of the file itself. In Solaris, the file /etc/magic documents the known types.
Browsers are different. They recognize associations between MIME types and file extensions. Also, all the major browsers let you bind an application to a file type you are trying to load. In Netscape you can find this under Edit | Preferences... | Navigator | Applications. YMMV in your browser of choice.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!