Changeset View
Changeset View
Standalone View
Standalone View
desktop/CMakeLists.txt
1 | # install the .desktop and rc files in the correct place | 1 | # install the .desktop and rc files in the correct place | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | install( | 3 | install( | ||
4 | PROGRAMS org.kde.spectacle.desktop | 4 | PROGRAMS org.kde.spectacle.desktop | ||
5 | DESTINATION ${XDG_APPS_INSTALL_DIR} | 5 | DESTINATION ${XDG_APPS_INSTALL_DIR} | ||
6 | ) | 6 | ) | ||
7 | 7 | | |||
8 | install( | 8 | install( | ||
9 | FILES spectacle.notifyrc | 9 | CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink ${KDE_INSTALL_FULL_APPDIR}/org.kde.spectacle.desktop ${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel/org.kde.spectacle.desktop)" | ||
ngraham: Need to create `${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel` if it doesn't already exist. | |||||
Confirming same resulting sandbox violation as dolphin, needs the same fix as in D21011. asturmlechner: Confirming same resulting sandbox violation as dolphin, needs the same fix as in D21011. | |||||
siddharthasahu: Typo: "org.kde.**dolphin**.desktop" -> "org.kde.**spectacle**.desktop" | |||||
10 | DESTINATION ${KNOTIFYRC_INSTALL_DIR} | | |||
11 | ) | 10 | ) | ||
12 | 11 | | |||
13 | install( | 12 | install( | ||
14 | FILES spectacle.khotkeys | 13 | FILES spectacle.notifyrc | ||
15 | DESTINATION ${DATA_INSTALL_DIR}/khotkeys | 14 | DESTINATION ${KNOTIFYRC_INSTALL_DIR} | ||
16 | ) | 15 | ) | ||
17 | 16 | | |||
18 | install( | 17 | install( | ||
19 | FILES org.kde.spectacle.appdata.xml | 18 | FILES org.kde.spectacle.appdata.xml | ||
20 | DESTINATION ${KDE_INSTALL_METAINFODIR} | 19 | DESTINATION ${KDE_INSTALL_METAINFODIR} | ||
21 | ) | 20 | ) | ||
21 | | ||||
22 | install( | ||||
23 | FILES spectacle_shortcuts.upd | ||||
24 | DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} | ||||
25 | ) | ||||
26 | add_executable(spectacle-migrate-shortcuts MigrateShortcuts.cpp) | ||||
27 | target_link_libraries(spectacle-migrate-shortcuts Qt5::DBus KF5::GlobalAccel KF5::ConfigCore KF5::XmlGui KF5::I18n) | ||||
28 | install( | ||||
29 | TARGETS spectacle-migrate-shortcuts | ||||
30 | DESTINATION ${KDE_INSTALL_LIBDIR}/kconf_update_bin | ||||
31 | ) |
Need to create ${KDE_INSTALL_FULL_DATAROOTDIR}/kglobalaccel if it doesn't already exist.
This is how I did it in D20229: