mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
22 lines
484 B
C++
22 lines
484 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QStringList>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
#if defined(Q_OS_UNIX) and !defined(Q_OS_DARWIN)
|
||
|
|
||
|
enum class XDGDirectoryType {
|
||
|
Config,
|
||
|
Data,
|
||
|
};
|
||
|
|
||
|
/// getXDGDirectories returns a list of directories given a directory type
|
||
|
///
|
||
|
/// This will attempt to read the relevant environment variable (e.g. XDG_CONFIG_HOME and XDG_CONFIG_DIRS) and merge them, with sane defaults
|
||
|
QStringList getXDGDirectories(XDGDirectoryType directory);
|
||
|
|
||
|
#endif
|
||
|
|
||
|
} // namespace chatterino
|