Package: desktop-profiles
When I apply GCONF profiles via desktop-profiles the script cannot set
$DEFAULTS_PATH.
It always only set $MANDATORY_PATH.
I suggest the following patch to make it verify the directory name for applying
the patch.
Thanks
=== modified file '20desktop-profiles_activateDesktopProfiles'
--- 20desktop-profiles_activateDesktopProfiles 2009-11-25 20:51:41 +0000
+++ 20desktop-profiles_activateDesktopProfiles 2009-12-02 19:26:20 +0000
@@ -301,17 +301,23 @@
# see if there's actually anyting to add, if so create pathfiles and fill
them
cat $GCONF_FILE | while read LINE; do
# user gconf source should be included by system-wide path already
- if (test "$LINE" != 'xml:readwrite:$(HOME)/.gconf'); then
- if (test $INCLUDED_HOME = false); then
- # add configuration source
- echo $LINE >> "$MANDATORY_PATH";
- else
- # add configuration source
- echo $LINE >> "$DEFAULTS_PATH";
- fi;
- else
- INCLUDED_HOME=true;
- fi
+ if (echo "$LINE" |grep "mandatory"); then
+ echo $LINE >> "$MANDATORY_PATH";
+ elif (echo "$LINE" |grep "default"); then
+ echo $LINE >> "$DEFAULTS_PATH";
+ fi
+
+# if (test "$LINE" != 'xml:readwrite:$(HOME)/.gconf'); then
+# if (test $INCLUDED_HOME = false); then
+# # add configuration source
+# echo $LINE >> "$MANDATORY_PATH";
+# else
+# # add configuration source
+# echo $LINE >> "$DEFAULTS_PATH";
+# fi;
+# else
+# INCLUDED_HOME=true;
+# fi
done;
# get rid of temp files and variables if we don't use them
Marc GariƩpy
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]