From e2071e34b80ed121e35a5fb2bb93038caf19af45 Mon Sep 17 00:00:00 2001 From: kueller Date: Mon, 21 Dec 2009 09:36:01 +0000 Subject: [PATCH] =?UTF-8?q?Grundeinstellungen=20f=C3=BCr=20den=20Gnome=20D?= =?UTF-8?q?esktop?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_gnomeconf@4908 504e572c-2e33-0410-9681-be2bf7408885 --- etc/sysconfig/profile.d/gnome | 21 +++++++++++++++++++++ etc/sysconfig/profile.d/tmp/postinstall | 1 + 2 files changed, 22 insertions(+) create mode 100644 etc/sysconfig/profile.d/gnome create mode 100644 etc/sysconfig/profile.d/tmp/postinstall diff --git a/etc/sysconfig/profile.d/gnome b/etc/sysconfig/profile.d/gnome new file mode 100644 index 0000000..8e51ebc --- /dev/null +++ b/etc/sysconfig/profile.d/gnome @@ -0,0 +1,21 @@ +#!/bin/bash + +export GNOME_PREFIX=/opt/gnome +export LIBGLADE_EXE_PREFIX=${GNOME_PREFIX} + +if [ $EUID -eq 0 ]; then + export PATH="${PATH}:${GNOME_PREFIX}/sbin" +fi +export PATH="${PATH}:${GNOME_PREFIX}/bin" + +export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${GNOME_PREFIX}/lib/pkgconfig" +export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${GNOME_PREFIX}/share" +export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/gnome/xdg" + +if ! grep -q "/opt/gnome/lib"; then + echo "/opt/gnome/lib" >>/etc/ld.so.conf + if -d /lib64; then + echo "/opt/gnome/lib64" >>/etc/ld.so.conf + fi +fi + diff --git a/etc/sysconfig/profile.d/tmp/postinstall b/etc/sysconfig/profile.d/tmp/postinstall new file mode 100644 index 0000000..9155b88 --- /dev/null +++ b/etc/sysconfig/profile.d/tmp/postinstall @@ -0,0 +1 @@ +sed -i "//a\ /opt/ghome/share/dbus-1/services" /etc/sysconfig/dbus/dbus-1/session.conf