Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Linux settings

The [linux] table holds the shared fields and files used by Linux package formats. Breadbox checks them when you select deb, pkg, rpm or appimage.

Shared fields

KeyDescription
identifierSafe filename component used for the desktop file and icon names.
description-longLong description used by deb and rpm.
categoriesDefault desktop Categories value.

See Root keys.

[linux.icons]

Keys are icon sizes and values are file paths.

KeyValue
scalablePath to an .svg file.
WxHPath to a .png or .xpm file, with numeric width and height.

Each path must name an existing file. Relative paths use the project root. Absolute paths are used as written. Icons are installed under usr/share/icons/hicolor/<size>/apps/<identifier>.<ext>.

[linux.icons]
scalable = "icons/app.svg"
64x64 = "icons/app-64.png"
128x128 = "icons/app-128.png"

Breadbox adds Icon=<identifier> when you configure at least one icon. appimage needs at least one icon and a non-empty Icon value in the final desktop entry. If no scalable icon is set, Breadbox uses the largest configured icon.

[linux.desktop]

Write desktop entry keys directly under [linux.desktop]. Strings replace generated or component values. Arrays append to generated or component lists and remove duplicates. Use a string to replace a list completely. For the full set of keys and value rules, see the Desktop Entry Specification.

[linux.desktop]
StartupWMClass = "myapp"
Comment = "Example desktop application"
Categories = ["Utility", "Development"]
MimeType = ["x-scheme-handler/http", "x-scheme-handler/https"]
Icon = "myapp"

template is not supported. Using it is an error. Write keys directly under [linux.desktop], or add a desktop file with install files.

Keys accept ASCII letters, digits and -. Locale suffixes accept ASCII letters, digits, _, -, @ and ., as in "Name[fr]" = "Nom". Write arrays as semicolon-terminated lists. Escape ;, \, newline, carriage return and tab. Empty arrays and empty list items are errors.

A final desktop entry needs Type = "Application", Name and Exec. Exec can be omitted only when the entry sets DBusActivatable to the string "true". Other Type values are errors.

Breadbox writes these defaults when you do not override them:

KeyValue
Nameapp-name or the package name.
ExecBinary name.
TypeApplication.
Categorieslinux.categories.
CommentPackage description.
StartupWMClassBinary name.
Iconlinux.identifier, when icons are configured.

Component entries are applied first. See Browser registration.

Desktop actions

List action IDs in Actions and configure each ID under [linux.desktop.actions.<id>]:

[linux.desktop]
Actions = ["open", "settings"]

[linux.desktop.actions.open]
Name = "Open"
Exec = "myapp --open"

[linux.desktop.actions.settings]
Name = "Settings"
Exec = "myapp --settings"

Actions also accepts a semicolon-terminated string such as "open;settings;", but arrays are recommended. Action IDs accept ASCII letters, digits and -. Each ID needs a matching action table. Unlisted tables are errors. Each action needs Name and Exec. Exec can be omitted when the main entry sets DBusActivatable = "true". Action tables accept the same key, value, locale and escaping rules as the main entry.