DesktopEntry

Subclass of inilike.file.IniLikeGroup for easy accessing of Desktop Entry properties.

Members

Enums

Type
enum Type

Desktop entry type

Functions

actions
auto actions()

Actions supported by application.

actions
string actions(Range values)

Sets the list of values for "Actions" list.

categories
auto categories()

Categories this program belongs to.

categories
string categories(Range values)

Sets the list of values for the "Categories" list.

comment
string comment()

Tooltip for the entry, for example "View sites on the Internet".

comment
string comment(string commentary)

Set "Comment" to commentary escaping the value if needed.

dbusActivable
bool dbusActivable()

A boolean value specifying if D-Bus activation is supported for this application.

dbusActivable
bool dbusActivable(bool activable)

setter

displayName
string displayName()

Specific name of the application, for example "Qupzilla".

displayName
string displayName(string name)

Set "Name" to name escaping the value if needed.

execValue
string execValue()

Exec value of desktop file.

execValue
string execValue(string exec)

Set "Exec" to exec escaping the value if needed.

genericName
string genericName()

Generic name of the application, for example "Web Browser".

genericName
string genericName(string name)

Set "GenericName" to name escaping the value if needed.

hidden
bool hidden()

Hidden means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at all, as far as that user is concerned.

hidden
bool hidden(bool hide)

setter

iconName
string iconName()

Icon to display in file manager, menus, etc.

iconName
string iconName(string icon)

Set Icon value.

keywords
auto keywords()

A list of strings which may be used in addition to other metadata to describe this entry.

keywords
string keywords(Range values)

Sets the list of values for the "Keywords" list.

localizedComment
string localizedComment(string locale)
localizedDisplayName
string localizedDisplayName(string locale)
localizedGenericName
string localizedGenericName(string locale)
localizedIconName
string localizedIconName(string locale)
localizedKeywords
auto localizedKeywords(string locale)

A list of localied strings which may be used in addition to other metadata to describe this entry.

mimeTypes
auto mimeTypes()

The MIME type(s) supported by this application.

mimeTypes
string mimeTypes(Range values)

Sets the list of values for the "MimeType" list.

noDisplay
bool noDisplay()

NoDisplay means "this application exists, but don't display it in the menus".

noDisplay
bool noDisplay(bool notDisplay)

setter

notShowIn
auto notShowIn()

A list of strings identifying the desktop environments that should not display a given desktop entry.

notShowIn
string notShowIn(Range values)

setter

onlyShowIn
auto onlyShowIn()

A list of strings identifying the desktop environments that should display a given desktop entry.

onlyShowIn
string onlyShowIn(Range values)

setter

showIn
bool showIn(string desktopEnvironment)

Check if desktop file should be shown in menu of specific desktop environment.

startupNotify
bool startupNotify()

A boolean value specifying if an application uses Startup Notification Protocol.

startupNotify
bool startupNotify(bool notify)

setter

terminal
bool terminal()

Whether the program runs in a terminal window.

terminal
bool terminal(bool t)

setter

tryExecValue
string tryExecValue()

Value used to determine if the program is actually installed.

tryExecValue
string tryExecValue(string tryExec)

Set TryExec value escaping it if needed.

type
Type type()

Type of desktop entry.

type
Type type(Type t)

Sets "Type" field to type Note: Setting the Type.Unknown removes type field.

url
string url()

URL to access.

url
string url(string link)

Set "URL" to link escaping the value if needed.

workingDirectory
string workingDirectory()

The working directory to run the program in.

workingDirectory
string workingDirectory(string wd)

Set Path value.

Meta