KDECore
kkernel_mac.cpp
Go to the documentation of this file.
121 if (!value.isEmpty() && QFile::exists(value) && (QFile::permissions(value) & QFile::WriteUser)) {
152 QStringList path = QFile::decodeName(qgetenv("KDEDIRS")).split(QLatin1Char(':')).replaceInStrings(QRegExp(QLatin1String("$")), QLatin1String("/bin"));
153 path << QFile::decodeName(qgetenv("PATH")).split(QLatin1Char(':')) << QLatin1String("/usr/local/bin");
167 qp.start(externalProc, QStringList() << QLatin1String("getenv") << QLatin1String("DBUS_LAUNCHD_SESSION_BUS_SOCKET"));
QString errorString() const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const T * constData() const
const T & at(int i) const
bool exists() const
void mac_fork_and_reexec_self()
Calling CoreFoundation APIs (which is unavoidable in Qt/Mac) has always had issues on Mac OS X...
Definition: kkernel_mac.cpp:75
int size() const
QString fromLocal8Bit(const char *str, int size)
bool isEmpty() const
QStringList & replaceInStrings(const QString &before, const QString &after, Qt::CaseSensitivity cs)
QByteArray toLocal8Bit() const
T * data()
void setTextModeEnabled(bool enabled)
QString fromLatin1(const char *str, int size)
bool mac_set_dbus_address(QString value)
Set the D-Bus environment based on session bus socket.
Definition: kkernel_mac.cpp:119
Permissions permissions() const
void mac_initialize_dbus()
Make sure D-Bus is initialized, by any means necessary.
Definition: kkernel_mac.cpp:134
QString convert_CFString_to_QString(CFStringRef str)
qAppFileName() is not public in qt4/mac, so we need to redo it here
Definition: kkernel_mac.cpp:54
int exitCode() const
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
QString decodeName(const QByteArray &localFileName)
QByteArray readAllStandardError()
qint64 readLine(char *data, qint64 maxSize)
bool waitForFinished(int msecs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.