desktopfile

Reading, writing and executing .desktop file

Public Imports

inilike
public import inilike;
Undocumented in source.

Members

Classes

DesktopFile
class DesktopFile

Represents .desktop file.

Functions

applicationsPaths
string[] applicationsPaths(string[] dataPaths)

Applications paths based on data paths. This function is available on all platforms, but requires dataPaths argument (e.g. C:\ProgramData\KDE\share on Windows)

applicationsPaths
string[] applicationsPaths()

ditto, but returns paths based on known data paths. It's practically the same as standardPaths(StandardPath.applications). This function is defined only on freedesktop systems to avoid confusion with other systems that have data paths not compatible with Desktop Entry Spec.

determineTerminalEmulator
string determineTerminalEmulator()

Get terminal emulator. It probes various alternatives in this order: x-terminal-emulator (Linux-only), xdg-terminal (Linux-only), TERM (environment variable). If all guesses failed, it uses xterm as fallback.

unescapeExec
string unescapeExec(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
writableApplicationPath
string writableApplicationPath()

Path where .desktop files can be stored without requiring of root privileges. It's practically the same as writablePath(StandardPath.applications). This function is defined only on freedesktop systems to avoid confusion with other systems that have data paths not compatible with Desktop Entry Spec. Note: it does not check if returned path exists and appears to be directory.

See Also

Meta