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
| Key | Description |
|---|---|
identifier | Safe filename component used for the desktop file and icon names. |
description-long | Long description used by deb and rpm. |
categories | Default desktop Categories value. |
See Root keys.
[linux.icons]
Keys are icon sizes and values are file paths.
| Key | Value |
|---|---|
scalable | Path to an .svg file. |
WxH | Path 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:
| Key | Value |
|---|---|
Name | app-name or the package name. |
Exec | Binary name. |
Type | Application. |
Categories | linux.categories. |
Comment | Package description. |
StartupWMClass | Binary name. |
Icon | linux.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.