applicationsPaths

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)

  1. string[] applicationsPaths(string[] dataPaths)
    @trusted nothrow
    string[]
    applicationsPaths
    (
    in string[] dataPaths
    )
  2. string[] applicationsPaths()

Return Value

Type: string[]

Array of paths, based on dataPaths with "applications" directory appended.

Examples

assert(equal(applicationsPaths(["share", buildPath("local", "share")]), [buildPath("share", "applications"), buildPath("local", "share", "applications")]));

Meta