Skip to content

Commit

Permalink
Remove the use of kwindowsystem, wasn't needed
Browse files Browse the repository at this point in the history
  • Loading branch information
spersson committed May 14, 2015
1 parent e3c4c13 commit 1084cb9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ include(FeatureSummary)
include(ECMInstallIcons)

find_package(Qt5 REQUIRED COMPONENTS Widgets)
find_package(KF5 REQUIRED COMPONENTS Solid KIO IdleTime Init I18n WindowSystem Notifications CoreAddons IconThemes DBusAddons)
find_package(KF5 REQUIRED COMPONENTS
Solid
KIO
IdleTime
I18n
Notifications
CoreAddons
IconThemes
DBusAddons
Config
Init # needed for the kdeinit cmake macro
)

add_subdirectory(daemon)
add_subdirectory(icons)
add_subdirectory(filedigger)
Expand Down
2 changes: 1 addition & 1 deletion daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ target_link_libraries(kdeinit_kup-daemon
Qt5::Core
Qt5::DBus
Qt5::Gui
KF5::ConfigCore
KF5::KIOCore
KF5::KIOFileWidgets
KF5::IdleTime
KF5::I18n
KF5::Solid
KF5::WindowSystem
KF5::Notifications
KF5::CoreAddons
KF5::DBusAddons
Expand Down
3 changes: 0 additions & 3 deletions daemon/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <KAboutData>
#include <KDBusService>
#include <KLocalizedString>
#include <KStartupInfo>

#include <QApplication>
#include <QDebug>
Expand Down Expand Up @@ -65,8 +64,6 @@ extern "C" int Q_DECL_EXPORT kdemain(int argc, char *argv[]) {
// This call will exit() if an instance is already running
KDBusService lService(KDBusService::Unique);

KStartupInfo::appStarted(); //make startup notification go away.

lDaemon->setupGuiStuff();

// these calls will make session management not try (and fail because of KDBusService) to start
Expand Down
1 change: 1 addition & 0 deletions kcm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Qt5::Core
Qt5::DBus
Qt5::Gui
KF5::CoreAddons
KF5::ConfigCore
KF5::KIOCore
KF5::KIOFileWidgets
KF5::Solid
Expand Down

0 comments on commit 1084cb9

Please sign in to comment.