diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt index 84092254c..4cc00c4b2 100644 --- a/desktop/CMakeLists.txt +++ b/desktop/CMakeLists.txt @@ -9,5 +9,4 @@ install( FILES konsolepart.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) install( FILES konsolehere.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus ) install( FILES konsolerun.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus ) -install( FILES konsoleui.rc sessionui.rc partui.rc DESTINATION ${KXMLGUI_INSTALL_DIR}/konsole ) install( FILES konsole.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR} ) diff --git a/desktop/konsole.qrc b/desktop/konsole.qrc new file mode 100644 index 000000000..8f3ff661c --- /dev/null +++ b/desktop/konsole.qrc @@ -0,0 +1,8 @@ + + + + konsoleui.rc + partui.rc + sessionui.rc + + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2a020b03f..9c066e47a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -141,6 +141,9 @@ ki18n_wrap_ui(konsoleprivate_SRCS ColorSchemeEditor.ui settings/ProfileSettings.ui settings/TabBarSettings.ui) +# add the resource files for the ui files +qt5_add_resources( konsoleprivate_SRCS ../desktop/konsole.qrc) + add_library(konsoleprivate ${konsoleprivate_SRCS}) generate_export_header(konsoleprivate BASE_NAME konsoleprivate) target_link_libraries(konsoleprivate PUBLIC ${konsole_LIBS}) diff --git a/src/main.cpp b/src/main.cpp index bb980749e..f53687ab3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -120,7 +120,7 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char* argv[]) atexit(deleteQApplication); // Ensure that we only launch a new instance if we need to // If there is already an instance running, we will quit here - KDBusService dbusService(startupOption); + KDBusService dbusService(startupOption | KDBusService::NoExitOnFailure); needToDeleteQApplication = false;