standardpaths 0.0.1-alpha

Library for getting standard paths


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:


This package provides sub packages which can be used individually:

standardpaths:printdirs - A minimal D application.

standardpaths:findexecutable - A minimal D application.

Standard paths

D library for getting standard paths (e.g. Pictures, Music, Documents). Inspired by QStandardPaths from Qt.

The library is in early development. API may change in future. Join discussions in Issues if you're interested.

Currently works on Windows, Linux and FreeBSD.

Examples

Prints some standard paths to stdout.

dub run standardpaths:printdirs --build=release

Find executable

Take name of executable as command line argument and search PATH environment variable for retrieving absolute path to file.

dub run standardpaths:findexecutable --build=release -- whoami

Implementation details

Posix

On Posix systems library uses XDG Base Directory Specification and xdg-user-dirs.

Windows

On Windows it utilizes SHGetSpecialFolderPath.

Authors:
  • Roman Chistokhodov
Sub packages:
standardpaths:printdirs, standardpaths:findexecutable
Dependencies:
none
Versions:
0.8.2 2021-Jun-12
0.8.1 2018-May-05
0.8.0 2017-Oct-11
0.7.1 2016-Sep-26
0.7.0 2016-Jun-27
Show all 23 versions
Download Stats:
  • 7 downloads today

  • 59 downloads this week

  • 272 downloads this month

  • 21368 downloads total

Score:
3.3
Short URL:
standardpaths.dub.pm