summaryrefslogtreecommitdiff
path: root/config/Gnome.in
diff options
context:
space:
mode:
authorMartin Peterson <mkp@src.gnome.org>1999-04-18 22:08:08 +0000
committerMartin Peterson <mkp@src.gnome.org>1999-04-18 22:08:08 +0000
commit48dfb0c6fc683eb0512074448bc4418ad8241e40 (patch)
treecf7b1a5029538937affbbfd917db176d524ed8f6 /config/Gnome.in
downloadgdm-48dfb0c6fc683eb0512074448bc4418ad8241e40.tar.gz
Initial revision
Diffstat (limited to 'config/Gnome.in')
-rwxr-xr-xconfig/Gnome.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/config/Gnome.in b/config/Gnome.in
new file mode 100755
index 00000000..cf429391
--- /dev/null
+++ b/config/Gnome.in
@@ -0,0 +1,18 @@
+#!/bin/bash -login
+
+for errfile in "$HOME/.gnomerc-errors" "${TMPDIR-/tmp}/gnomerc-$USER" "/tmp/gnomerc-$USER"
+do
+ if ( cp /dev/null "$errfile" 2> /dev/null )
+ then
+ chmod 600 "$errfile"
+ exec > "$errfile" 2>&1
+ break
+ fi
+done
+
+if [ -x "$HOME/.gnomerc" ]; then
+ exec "$HOME/.gnomerc"
+else
+ exec "@sysconfdir@/gnomerc"
+fi
+