1
0
forked from brl/citadel

Install Citadel GNOME gsettings schema

This used to be part of citadel-tools but this is
a better place for it.
This commit is contained in:
Bruce Leidl 2024-05-08 11:05:58 -04:00
parent 4831a46764
commit f620c9c280
3 changed files with 35 additions and 2 deletions

View File

@ -9,6 +9,7 @@ S = "${WORKDIR}"
SRC_URI = "\ SRC_URI = "\
file://gsettings/90_citadel.gschema.override \ file://gsettings/90_citadel.gschema.override \
file://gsettings/com.subgraph.RealmConfig.gschema.xml \
file://dconf/build.d/realms.d/initial-realm-dconf.conf \ file://dconf/build.d/realms.d/initial-realm-dconf.conf \
file://dconf/build.d/citadel.d/citadel-dconf.conf \ file://dconf/build.d/citadel.d/citadel-dconf.conf \
" "
@ -29,6 +30,7 @@ do_install() {
install -m 0755 -d ${D}${datadir}/factory/storage/citadel-state/citadel-dconf install -m 0755 -d ${D}${datadir}/factory/storage/citadel-state/citadel-dconf
install -m 644 ${S}/gsettings/90_citadel.gschema.override ${D}${datadir}/glib-2.0/schemas install -m 644 ${S}/gsettings/90_citadel.gschema.override ${D}${datadir}/glib-2.0/schemas
install -m 644 ${S}/gsettings/com.subgraph.RealmConfig.gschema.xml ${D}${datadir}/glib-2.0/schemas
install -m 644 ${WORKDIR}/dconf-output/user ${D}${sysconfdir}/skel/.config/dconf install -m 644 ${WORKDIR}/dconf-output/user ${D}${sysconfdir}/skel/.config/dconf
install -m 644 ${WORKDIR}/dconf-output/citadel ${D}${datadir}/factory/storage/citadel-state/citadel-dconf/user install -m 644 ${WORKDIR}/dconf-output/citadel ${D}${datadir}/factory/storage/citadel-state/citadel-dconf/user
} }

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema id="com.subgraph.citadel" path="/com/subgraph/citadel/">
<key name="label-color-list" type="as">
<default>[
'rgb(153,193,241)',
'rgb(143,240,164)',
'rgb(249,240,107)',
'rgb(255,190,111)',
'rgb(246,97,81)',
'rgb(220,138,221)',
'rgb(205,171,143)'
]</default>
<summary />
</key>
<key name="realm-label-colors" type="as">
<default>['main:rgb(153,193,241)']</default>
</key>
<key name="realm-label-show-citadel" type="b">
<default>true</default>
<summary>Show label on Citadel windows</summary>
</key>
<key name="realm-label-show-all" type="b">
<default>false</default>
<summary>Show labels on all windows including windows belonging to current realm context</summary>
</key>
<key name="realm-label-show-app-icons" type="b">
<default>true</default>
<summary>Display labels above application icons in overview</summary>
</key>
</schema>
</schemalist>

View File

@ -511,7 +511,6 @@ do_install() {
install -d ${D}${libexecdir} install -d ${D}${libexecdir}
install -d ${D}${systemd_system_unitdir} install -d ${D}${systemd_system_unitdir}
install -d ${D}${datadir}/applications install -d ${D}${datadir}/applications
install -d ${D}${datadir}/glib-2.0/schemas
# Services desktop sync # Services desktop sync
install -m 644 ${S}/systemd/citadel-desktop-watcher.path ${D}${systemd_system_unitdir} install -m 644 ${S}/systemd/citadel-desktop-watcher.path ${D}${systemd_system_unitdir}
@ -535,7 +534,6 @@ do_install() {
# realm-config-ui # realm-config-ui
install -m 0755 ${TARGET_BIN}/realm-config-ui ${D}${libexecdir} install -m 0755 ${TARGET_BIN}/realm-config-ui ${D}${libexecdir}
install -m 0644 ${S}/data/com.subgraph.RealmConfig.desktop ${D}${datadir}/applications install -m 0644 ${S}/data/com.subgraph.RealmConfig.desktop ${D}${datadir}/applications
install -m 0644 ${S}/data/com.subgraph.RealmConfig.gschema.xml ${D}${datadir}/glib-2.0/schemas
# /usr/libexec/citadel-tool # /usr/libexec/citadel-tool
install -m 755 ${TARGET_BIN}/citadel-tool ${D}${libexecdir} install -m 755 ${TARGET_BIN}/citadel-tool ${D}${libexecdir}