Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qstandardpaths_unix.cpp File Reference

(55f0738f1638356137e6bd60459dc186ceaaabd8)

#include "qstandardpaths.h"
#include <qdir.h>
#include <qfile.h>
#include <qhash.h>
#include <qtextstream.h>
#include <private/qfilesystemengine_p.h>
#include <errno.h>
#include <stdlib.h>
#include <qcoreapplication.h>
+ Include dependency graph for qstandardpaths_unix.cpp:

Go to the source code of this file.

Functions

static void appendOrganizationAndApp (QString &path)
 
static QByteArray unixPermissionsText (QFile::Permissions permissions)
 
static bool checkXdgRuntimeDir (const QString &xdgRuntimeDir)
 
static QStringList dirsList (const QString &xdgEnvVar)
 
static QStringList xdgDataDirs ()
 
static QStringList xdgConfigDirs ()
 

Function Documentation

◆ appendOrganizationAndApp()

static void appendOrganizationAndApp ( QString & path)
static

Definition at line 27 of file qstandardpaths_unix.cpp.

References QCoreApplication::applicationName, QString::isEmpty(), QCoreApplication::organizationName, and Q_UNUSED.

+ Here is the call graph for this function:

◆ checkXdgRuntimeDir()

static bool checkXdgRuntimeDir ( const QString & xdgRuntimeDir)
static

◆ dirsList()

static QStringList dirsList ( const QString & xdgEnvVar)
static

Definition at line 369 of file qstandardpaths_unix.cpp.

References QDir::cleanPath(), dir, qTokenize(), and QString::startsWith().

Referenced by xdgConfigDirs(), and xdgDataDirs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unixPermissionsText()

static QByteArray unixPermissionsText ( QFile::Permissions permissions)
static

Definition at line 67 of file qstandardpaths_unix.cpp.

References QFileDevice::ExeGroup, QFileDevice::ExeOther, QFileDevice::ExeOwner, QByteArray::number(), QFileDevice::ReadGroup, QFileDevice::ReadOther, QFileDevice::ReadOwner, QFileDevice::WriteGroup, QFileDevice::WriteOther, and QFileDevice::WriteOwner.

Referenced by checkXdgRuntimeDir().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ xdgConfigDirs()

static QStringList xdgConfigDirs ( )
static

Definition at line 402 of file qstandardpaths_unix.cpp.

References QFile::decodeName(), dirsList(), qgetenv(), and xdgConfigDirs().

Referenced by xdgConfigDirs().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ xdgDataDirs()

static QStringList xdgDataDirs ( )
static

Definition at line 390 of file qstandardpaths_unix.cpp.

References QFile::decodeName(), dirsList(), and qgetenv().

+ Here is the call graph for this function: