Commit 0ebe9db0 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Fix MacOS build

If neither  PRIVATE_DBUS_ENABLED and APPLE_IN_APP_BUNDLE weren't set,
DBusHelper::macosUnsetLaunchctlEnv() wasn't declared.
parent c8c19369
Pipeline #89885 canceled with stage
......@@ -113,9 +113,8 @@ if (NOT ZSH_AUTOCOMPLETE_DIR)
set(ZSH_AUTOCOMPLETE_DIR "${KDE_INSTALL_DATADIR}/zsh/site-functions")
endif()
option(APPLE_IN_APP_BUNDLE "Compile KDE Connect to pack in App Bundle" OFF)
option(PRIVATE_DBUS_ENABLED "Use private dbus session for kdeconnect" OFF)
if(PRIVATE_DBUS_ENABLED OR APPLE_IN_APP_BUNDLE)
if(PRIVATE_DBUS_ENABLED)
add_compile_definitions(USE_PRIVATE_DBUS)
endif()
......
......@@ -60,8 +60,10 @@ void IndicatorHelper::iconPathHook()
int IndicatorHelper::daemonHook(QProcess &kdeconnectd)
{
#ifdef USE_PRIVATE_DBUS
// Unset launchctl env, avoid block
DBusHelper::macosUnsetLaunchctlEnv();
#endif
// Start kdeconnectd
m_splashScreen->showMessage(i18n("Launching daemon") + QStringLiteral("\n"), Qt::AlignHCenter | Qt::AlignBottom, Qt::white);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment