System Settings/File Associations/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
The workspace and the individual applications know the various kinds of files by their file type. This is what allows them to handle the different types of files appropriately. This settings dialog allows you to configure how any known file type is to be handled. It also lets you define new file types, or modify how a known type is recognized. | The workspace and the individual applications know the various kinds of files by their file type. This is what allows them to handle the different types of files appropriately. This settings dialog allows you to configure how any known file type is to be handled. It also lets you define new file types, or modify how a known type is recognized. | ||
Alternatively, you can configure a file type in '''Dolphin''' using one of the | |||
[[Special:myLanguage/Dolphin/File_Management#Change_a_File_Association_on-the-fly|3 methods to change file associations]]. | |||
== Configuring known file types == | == Configuring known file types == | ||
Line 20: | Line 23: | ||
To modify a file type, locate it in the list of file types and click on its name. Now you will see two tabs in the right side of the dialog. | To modify a file type, locate it in the list of file types and click on its name. Now you will see two tabs in the right side of the dialog. | ||
In the <menuchoice>General</menuchoice> tab you can change the icon associated with this type of file by clicking the icon button in the top left of the tab. You can add or remove file name patterns in the <menuchoice>Filename Patterns</menuchoice> list, thereby defining which files are recognized as having this type. The <menuchoice>Application Preference Order</menuchoice> list in the bottom part of the tab names the applications that will show up in the context menu, when you right click on a file of this type. The first application in the list is | In the <menuchoice>General</menuchoice> tab you can change the icon associated with this type of file by clicking the icon button in the top left of the tab. You can add or remove file name patterns in the <menuchoice>Filename Patterns</menuchoice> list, thereby defining which files are recognized as having this type. The <menuchoice>Application Preference Order</menuchoice> list in the bottom part of the tab names the applications that will show up in the context menu, when you right click on a file of this type. The first application in the list is the one that is used when you left click on the file. | ||
The options in the <menuchoice>Embedding</menuchoice> tab affect how the file type is handled by [[Special:myLanguage/Konqueror|Konqueror]], when it is used as a file manager. | The options in the <menuchoice>Embedding</menuchoice> tab affect how the file type is handled by [[Special:myLanguage/Konqueror|Konqueror]], when it is used as a file manager. | ||
== Adding new file types == | == Adding new file types locally == | ||
To add a new file type click on the <menuchoice>Add...</menuchoice> button below the list of file types in the | To add a new file type click on the <menuchoice>Add...</menuchoice> button below the list of file types in the left side of the window. That brings up a dialog where you should select a group from the <menuchoice>Group</menuchoice> dropdown list and enter a name in the <menuchoice>Type Name</menuchoice> text field. Then click the <menuchoice>OK</menuchoice> button to create your new file type. | ||
{{Note|1=You may need to go to the end of the list of files in the group to find your new file type.}} | {{Note|1=You may need to go to the end of the list of files in the group to find your new file type.}} | ||
Now you can edit the new file type in exactly the same way that you modified an existing file type. | Now you can edit the new file type in exactly the same way that you modified an existing file type. | ||
==Requesting new file types== | |||
The KDE software guesses filetypes using the [https://freedesktop.org/wiki/Software/shared-mime-info shared-mime-info] database, which is shared with many other software projects. To request a new file type to be added to the database, please, follow the instructions [https://cgit.freedesktop.org/xdg/shared-mime-info/plain/HACKING.md here]. | |||
[[Category:Desktop]] | [[Category:Desktop]] | ||
[[Category:System]] | [[Category:System]] | ||
[[Category:Configuration]] | [[Category:Configuration]] |
Latest revision as of 08:07, 28 October 2022
Modify an existing file type, or create a new one |
The workspace and the individual applications know the various kinds of files by their file type. This is what allows them to handle the different types of files appropriately. This settings dialog allows you to configure how any known file type is to be handled. It also lets you define new file types, or modify how a known type is recognized.
Alternatively, you can configure a file type in Dolphin using one of the 3 methods to change file associations.
Configuring known file types
In the list in the left part of the window you will find a search tool and a list of all known file types collected in a number of groups. To find a file type enter part of its file type name or file name pattern in the input line at the top.
You can also browse the list of file types. Just expand the relevant category, and go through the list of file types that appear. Some of these list are very long, though.
To modify a file type, locate it in the list of file types and click on its name. Now you will see two tabs in the right side of the dialog.
In the
tab you can change the icon associated with this type of file by clicking the icon button in the top left of the tab. You can add or remove file name patterns in the list, thereby defining which files are recognized as having this type. The list in the bottom part of the tab names the applications that will show up in the context menu, when you right click on a file of this type. The first application in the list is the one that is used when you left click on the file.The options in the Konqueror, when it is used as a file manager.
tab affect how the file type is handled byAdding new file types locally
To add a new file type click on the
button below the list of file types in the left side of the window. That brings up a dialog where you should select a group from the dropdown list and enter a name in the text field. Then click the button to create your new file type.
Now you can edit the new file type in exactly the same way that you modified an existing file type.
Requesting new file types
The KDE software guesses filetypes using the shared-mime-info database, which is shared with many other software projects. To request a new file type to be added to the database, please, follow the instructions here.