• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.14
  • kdelibs
  • kdecore
  • kernel
Functions | Variables
kkernel_mac.cpp File Reference
#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>
Include dependency graph for kkernel_mac.cpp:

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.

bool mac_set_dbus_address ( QString  value)

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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal