Fix MacOS build

If neither  PRIVATE_DBUS_ENABLED and APPLE_IN_APP_BUNDLE weren't set,
DBusHelper::macosUnsetLaunchctlEnv() wasn't declared.
This commit is contained in:
Albert Vaca Cintora 2021-10-19 18:29:55 +02:00
parent c8c193690a
commit 0ebe9db019
2 changed files with 3 additions and 2 deletions

View file

@ -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()

View file

@ -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);