Traducerea acestei pagini nu este completă încă. Până când va fi, părțile incomplete utilizează originalul în limba engleză.

Filetypes

Other than Windows, Haiku doesn't rely on the 3-letter file extension for a file type (e.g. .txt, .jpg, .mp3). This method is only a last resort fallback. Haiku uses MIME types just like it's custom on the internet.

While there's no reason to use file extensions in Haiku, remember to add them to files you want to share with users of other operating systems, e.g. over email, uploading to a server or via exchange of an USB drive. Otherwise their system may not recognize the file type.

index Configurarea tipului de fișier al unui fișier specific

You can change the type of a specific file, its icon and the associated application. Select the file and invoke the Add-Ons | Filetype add-on from the right-click context menu.

filetype-addon.png

index Tipul de fișier

The above is a PNG file, its MIME string image/png. Let's say you definitely know that it's not a PNG but a GIF. You can change that either by entering the correct MIME string by hand or with one of the two buttons below the textbox:

Selectare... afișează o listă ierarhică de tipuri de fișier unde navigați la imagine | Imagine GIF.
La fel ca... deschide un dialog de fișier unde alegeți orice fișier care are deja tipul de fișier pe care îl căutați.

index Aplicațiile preferate

This pop-up menu shows a list of all applications that can handle this particular filetype. From here you can choose which program should open this specific file when it's double-clicked. You could, for example, change a HTML file's preferred application from the browser to a text editor while you're working on it. Every other HTML file still opens in the browser, only this particular one starts in your text editor.

The Default application is the one that's set globally for that filetype. If you don't find the program you want to associate with this file in the pop-up menu, you'll again find the buttons Select… and Same as… which do the similar thing described under "The File Type" above.

index Pictograma

If you're wondering why the icon well on the top right is empty: Icons are normally inherited from the system default for that filetype. You can open the Filetype add-on of a file that contains an icon and drag & drop it into your file's icon well. Or you double-click the icon well and create or edit your own icon. For more info on icons and how to create your own, see topic Icon-O-Matic.

index Configurări speciale pentru aplicații

If you invoke the Filetype add-on on an executable (here: StyledEdit), you'll get a different dialog:

filetype-addon-stylededit.png

On top, you'll see, instead of a standardized MIME string, the unique application signature. With it, the system finds the program wherever it's installed.

Mai jos sunt câteva marcaje, care controlează comportamentul aplicației:

Lansare unică Only one instance of the app can be running per executable file. If you have two copies of that app, however, they can run side by side.
Lansare multiplă Multe instanțe ale aplicației pot rula simultan.
Lansare exclusivă Really only one instance with that app's signature is allowed to run at a time.
Doar argumente Indică faptul că aplicația nu răspunde la mesaje.
Aplicație plan secund The app won't appear in Twitcher or the list of running apps of the Deskbar.

Then there's the list of supported filetypes. You can add (and remove) filetypes if you think the application can handle them. As a consequence, the app will appear in the menu for preferred applications or Tracker's Open with… context menu when you right-click on a file of that type.

At the bottom are version and copyright information. Like the application signature, they are filled in by the app's author and shouldn't be altered.

index Configurări globale cu perferințele FileTypes

The FileTypes preferences don't deal with individual files but with global settings of filetypes. You can change default icons and preferred applications or add, remove, or alter attributes of whole filetypes. You can even create your own filetype from scratch.

All filetypes and their configurations are stored in /boot/home/config/settings/mime_d/. Before you start experimenting, it may be prudent to make a backup of that folder...

To learn more about the FileTypes preferences see the workshop: Filetypes, Attributes, Index and Queries.