pub struct DesktopEntry {Show 14 fields
pub id: String,
pub name: String,
pub generic_name: String,
pub comment: String,
pub icon: String,
pub exec: String,
pub terminal: bool,
pub categories: Vec<String>,
pub keywords: Vec<String>,
pub no_display: bool,
pub startup_wm_class: String,
pub working_dir: Option<PathBuf>,
pub actions: Vec<DesktopAction>,
pub path: PathBuf,
}Expand description
An installed application, from its desktop entry.
Fields§
§id: StringIts desktop file ID: the file’s path under applications/, with
/ as - and without .desktop, such as org.gnome.Nautilus.
name: StringIts name, in the user’s language when the file has it.
generic_name: StringWhat kind of program it is, such as Web Browser, or "".
comment: StringA line about it, for a tooltip, or "".
icon: StringIts icon, a name in the icon theme or a file’s path as the entry
writes it, or "".
exec: StringWhat it runs, as its Exec key writes it, field codes such as %U
and quotes included. "" for one only D-Bus starts.
terminal: boolWhether it runs in a terminal.
categories: Vec<String>Its categories, such as Network and WebBrowser.
keywords: Vec<String>More words a search may match, in the user’s language when the file has them.
no_display: boolWhether a launcher leaves it out: for NoDisplay, or because
OnlyShowIn or NotShowIn leave out this desktop. A window’s icon
may still come from it.
startup_wm_class: StringThe window class its windows have, if the entry says, or "".
working_dir: Option<PathBuf>The directory it runs in, if not the shell’s.
actions: Vec<DesktopAction>What else it can do, such as open a private window, in the entry’s order.
path: PathBufThe desktop file it was read from.