From fb3029c0a3121b83f1bca05006e5f95512c709e2 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 3 Aug 2021 22:41:37 +0200 Subject: Fix schema path --- data/CMakeLists.txt | 12 +++++++++++- data/org.ayatana.display.gschema.xml | 24 ------------------------ data/org.ayatana.indicator.display.gschema.xml | 24 ++++++++++++++++++++++++ src/rotation-lock.cpp | 2 +- 4 files changed, 36 insertions(+), 26 deletions(-) delete mode 100644 data/org.ayatana.display.gschema.xml create mode 100644 data/org.ayatana.indicator.display.gschema.xml diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 177e8fd..aea23cb 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -5,7 +5,7 @@ find_package(GSettings) ## if(NOT EXISTS /usr/share/glib-2.0/schemas/com.ubuntu.touch.system.gschema.xml) - add_schema ("org.ayatana.display.gschema.xml") + add_schema ("org.ayatana.indicator.display.gschema.xml") endif() ## @@ -28,6 +28,16 @@ configure_file ("${SYSTEMD_USER_FILE_IN}" "${SYSTEMD_USER_FILE}") install (FILES "${SYSTEMD_USER_FILE}" DESTINATION "${SYSTEMD_USER_DIR}") +## +## XDG Autostart Config File +## + +# build it +configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_PROJECT_NAME}.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop") + +# install it +install (FILES "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.desktop" DESTINATION "/etc/xdg/autostart") + ## ## Ayatana Indicator File ## diff --git a/data/org.ayatana.display.gschema.xml b/data/org.ayatana.display.gschema.xml deleted file mode 100644 index 70d6e46..0000000 --- a/data/org.ayatana.display.gschema.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - false - Lock rotation - - Lock automatic display rotation. - - - - "none" - Orientation lock - Locks orientation to a specific value. - - - diff --git a/data/org.ayatana.indicator.display.gschema.xml b/data/org.ayatana.indicator.display.gschema.xml new file mode 100644 index 0000000..9afa253 --- /dev/null +++ b/data/org.ayatana.indicator.display.gschema.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + false + Lock rotation + + Lock automatic display rotation. + + + + "none" + Orientation lock + Locks orientation to a specific value. + + + diff --git a/src/rotation-lock.cpp b/src/rotation-lock.cpp index b27be71..f671c4c 100644 --- a/src/rotation-lock.cpp +++ b/src/rotation-lock.cpp @@ -198,7 +198,7 @@ private: #ifdef HAS_UBUNTU_TOUCH_SCHEMA static constexpr char const * m_schema_name {"com.ubuntu.touch.system"}; #else - static constexpr char const * m_schema_name {"org.ayatana.display"}; + static constexpr char const * m_schema_name {"org.ayatana.indicator.display"}; #endif GSettings* m_settings = nullptr; GSimpleActionGroup* m_action_group = nullptr; -- cgit v1.2.3