• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

setting file association

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
High Plains Drifter
Posts: 7289
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic