|
| Environment (const Environment &)=delete |
|
| Environment (Environment &&)=delete |
|
Environment & | operator= (const Environment &)=delete |
|
Environment & | operator= (Environment &&)=delete |
|
const std::string & | appName () const |
|
const std::filesystem::path & | configHome () const |
|
const std::filesystem::path & | cacheHome () const |
|
const std::filesystem::path & | dataHome () const |
|
const std::filesystem::path & | appResources () const |
|
template<typename Source > |
std::filesystem::path | appResourcesAppend (Source source) |
|
std::filesystem::path | getenv_path (XDGFilePaths::XDG_Name name, const std::string &appName, bool create) |
| Find the XDG directory for a specified application name. More...
|
|
◆ getenv_path()
std::filesystem::path rose::Environment::getenv_path |
( |
XDGFilePaths::XDG_Name |
name, |
|
|
const std::string & |
appName, |
|
|
bool |
create |
|
) |
| |
Find the XDG directory for a specified application name.
If the path location does not exist, and create is set to true, it is created along with all parent directories with permissions set to std::filesystem::perms::all modified by umask(2).
- Parameters
-
name | The XDG Name. |
appName | The application name. |
create | Set to true if non-existent directories should be created. |
- Returns
◆ mLibResources
std::filesystem::path rose::Environment::mLibResources |
|
protected |
Resources shared by applications using the library.
The content of this directory is maintained by the library developer. Any user data placed or installed in this directory may be over written by updates.
The documentation for this class was generated from the following files: