Desktop Entries

Contents

    Desktop Entries store application metadata.

    Sources

    Desktop file content

    Desktop entry keys

    A simple example

    [Desktop Entry]
    Name=MyProg
    Comment=A life saver program
    Exec=/foo/bar/baz
    StartupNotify=true
    Terminal=false
    Type=Application
    Icon=/foo/bar/icon
    

    A more complex example (from the specification)

    [Desktop Entry]
    Version=1.0
    Type=Application
    Name=Foo Viewer
    Comment=The best viewer for Foo objects available!
    TryExec=fooview
    Exec=fooview %F
    Icon=fooview
    MimeType=image/x-foo;
    Actions=Gallery;Create;
    
    [Desktop Action Gallery]
    Exec=fooview --gallery
    Name=Browse Gallery
    
    [Desktop Action Create]
    Exec=fooview --create-new
    Name=Create a new Foo!
    Icon=fooview-new
    

    Desktop files databases

    The desktop files are stored inside well known directories: the desktop files databases.

    Databases locations

    And also...

    mimeinfo.cache

    Each database ows a mimeinfo.cache file, generated by update-desktop-database command which parses all the desktop entries files inside the database. This lookup table provides:

    Other files

    defaults.list

    → I'm not sure it is used intensively...

    bamf-2.index

    Executables

    exo-utils package provides exo-desktop-item-edit, which eases a lot desktop entries editing.

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.