File association

Issue #117 resolved
Former user created an issue

Need file association between .val and Valentina. Put in .deb file, rpm file and windows installer.

Comments (7)

  1. Roman Telezhynskyi repo owner

    From AskUbuntu

    The file manager (Nautilus, by default) uses the MIME type of a file to determine which program to open it with. When an application is installed, it can specify what MIME types it can open and the command to use to open the files in the .desktop file which is placed in /usr/share/applications. This is the file used for menus, desktop shortcuts, etc.

    For example, GIMP has the following .desktop file:

    [Desktop Entry]
    Name=GNU Image Manipulation Program
    GenericName=Image Editor
    Comment=Create images and edit photographs
    Exec=gimp-2.7 %U

    See the MimeType field - this lists the supported MIME types.The Exec field tells the system to use the command gimp-2.7 %U, replacing '%U' with the files to open. (Note GIMP 2.7 is a version I have installed from a PPA, so is higher than the current version in the Ubuntu repositories).

    When the application package is installed, the system extracts this MIME type data into a more easily accessible database because looking in each .desktop file would take too long if it was done every time a file was opened.

    This tells the system what applications can be used for that MIME type and provides the applications in the 'Open With' list. The default is defined elsewhere. The file /usr/share/applications/defaults.list provides the information for the system defaults. Unless you choose otherwise, these are the applications used when you 'Open' a file.

  2. Log in to comment