sddm-0.11.0-dbus-config.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 4ab6ab1b78617c51a6d9db4d03be2b3d75e7acc5 Mon Sep 17 00:00:00 2001
  2. From: Harald Sitter <sitter@kde.org>
  3. Date: Tue, 14 Apr 2015 10:50:00 +0200
  4. Subject: [PATCH] allow changing the dbus config file name
  5. on some distributions the generic name of the dbus config might be provided
  6. by more than one display manager, so always installing with the generic
  7. name would require distributions to hard-patch the cmake code.
  8. allowing to change it through a cmake cache variable enables distributions
  9. to simply parameterize in their cmake call.
  10. this for example affects Ubuntu where the config would be provided by both
  11. SDDM and LightDM.
  12. ---
  13. CMakeLists.txt | 1 +
  14. data/CMakeLists.txt | 2 +-
  15. 2 files changed, 2 insertions(+), 1 deletion(-)
  16. diff --git a/CMakeLists.txt b/CMakeLists.txt
  17. index 7ceed6e..cf21dc9 100644
  18. --- a/CMakeLists.txt
  19. +++ b/CMakeLists.txt
  20. @@ -141,6 +141,7 @@ set(SESSION_COMMAND "${DATA_INSTALL_DIR}/scripts/Xsession"
  21. set(CONFIG_FILE "${CMAKE_INSTALL_FULL_SYSCONFDIR}/sddm.conf" CACHE PATH "Path of the sddm config file")
  22. set(LOG_FILE "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/log/sddm.log" CACHE PATH "Path of the sddm log file")
  23. +set(DBUS_CONFIG_FILENAME "org.freedesktop.DisplayManager.conf" CACHE STRING "Name of the sddm config file")
  24. set(COMPONENTS_TRANSLATION_DIR "${DATA_INSTALL_DIR}/translations" CACHE PATH "Components translations directory")
  25. # Add subdirectories
  26. diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
  27. index 918892f..335f4e7 100644
  28. --- a/data/CMakeLists.txt
  29. +++ b/data/CMakeLists.txt
  30. @@ -1,7 +1,7 @@
  31. install(DIRECTORY "faces" DESTINATION "${DATA_INSTALL_DIR}")
  32. install(DIRECTORY "flags" DESTINATION "${DATA_INSTALL_DIR}")
  33. -install(FILES "org.freedesktop.DisplayManager.conf" DESTINATION "${DBUS_CONFIG_DIR}")
  34. +install(FILES "org.freedesktop.DisplayManager.conf" DESTINATION "${DBUS_CONFIG_DIR}" RENAME ${DBUS_CONFIG_FILENAME})
  35. install(FILES "scripts/Xsession" "scripts/Xsetup" "scripts/Xstop" DESTINATION "${DATA_INSTALL_DIR}/scripts"
  36. PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
  37. --
  38. 2.3.6