KDECore
#include "kkernel_mac.h"
#include <config.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/param.h>
#include <crt_externs.h>
#include <mach-o/dyld.h>
#include <CoreFoundation/CFBundle.h>
#include <CoreFoundation/CFString.h>
#include <CoreFoundation/CFURL.h>
#include <QtCore/QFile>
#include <QtCore/QProcess>
#include <QtCore/QStringList>
#include <QtCore/qvarlengtharray.h>
#include <kstandarddirs.h>
#include <ksharedconfig.h>
#include <kconfig.h>
#include <kdebug.h>
Go to the source code of this file.
Functions | |
QString | convert_CFString_to_QString (CFStringRef str) |
QString | mac_app_filename () |
void | mac_fork_and_reexec_self () |
void | mac_initialize_dbus () |
bool | mac_set_dbus_address (QString value) |
Variables | |
bool | dbus_initialized = false |
int | timeout = 3000 |
Function Documentation
QString convert_CFString_to_QString | ( | CFStringRef | str | ) |
qAppFileName() is not public in qt4/mac, so we need to redo it here
Mac-specific functions needed in kdecore.
Definition at line 54 of file kkernel_mac.cpp.
QString mac_app_filename | ( | ) |
Get the application name.
Definition at line 188 of file kkernel_mac.cpp.
void mac_fork_and_reexec_self | ( | ) |
Calling CoreFoundation APIs (which is unavoidable in Qt/Mac) has always had issues on Mac OS X, but as of 10.5 is explicitly disallowed with an exception.
Fork and reexec to work around CoreFoundation issues.
As a result, in the case where we would normally fork and then dlopen code, or continue to run other code, we must now fork-and-exec.
See "CoreFoundation and fork()" at http://developer.apple.com/releasenotes/CoreFoundation/CoreFoundation.html
Definition at line 75 of file kkernel_mac.cpp.
void mac_initialize_dbus | ( | ) |
Make sure D-Bus is initialized, by any means necessary.
Initialize D-Bus Mac-specific stuff if necessary.
Definition at line 134 of file kkernel_mac.cpp.
Set the D-Bus environment based on session bus socket.
Definition at line 119 of file kkernel_mac.cpp.
Variable Documentation
bool dbus_initialized = false |
Definition at line 48 of file kkernel_mac.cpp.
int timeout = 3000 |
Definition at line 46 of file kkernel_mac.cpp.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.