#!/bin/bash # --- T2-COPYRIGHT-BEGIN --- # t2/package/*/gconf/gconf.postinstall # Copyright (C) 2004 - 2026 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- umask 022 SCHEMA_DIR=/etc/D_prefix/gconf/schemas export GCONF_CONFIG_SOURCE="`/D_prefix/bin/gconftool-2 --get-default-source`" echo "(Re-)Generating Gnome gconf schemes ..." while read schema; do /D_prefix/bin/gconftool-2 --makefile-install-rule $schema | \ sed -e '/^[A-Z].*ed schema/d' -e '/[^ ]*/d' done < <( if [ -f $SCHEMA_DIR/.stamp ]; then find $SCHEMA_DIR -newer $SCHEMA_DIR/.stamp -name "*.schemas" else find $SCHEMA_DIR -name "*.schemas" fi) touch $SCHEMA_DIR/.stamp echo "Correcting Gnome gconf permissions (installed incorrectly by Gnome) ..." find /etc/D_prefix/gconf -type d | xargs chmod 0755 find /etc/D_prefix/gconf -type f | xargs chmod 0644