desktopId

  1. string desktopId(string fileName, Range appsPaths)
  2. string desktopId(string fileName)
    @trusted nothrow
    static if(isFreedesktop)
    string
    desktopId
    (
    string fileName
    )

Parameters

fileName string

Desktop file. Note: This function retrieves applications paths each time it's called and therefore can impact performance. To avoid this issue use the overload with argument.

Return Value

Type: string

Desktop file ID or empty string if file does not have an ID.

See Also

desktopfile.paths.applicationsPaths

Meta