[nautilus-actions] Make sure that GConf is at the end of the list of I/O providers



commit 536631f39161e547a258b6e701c30ca7e020b545
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri Jan 7 14:57:59 2011 +0100

    Make sure that GConf is at the end of the list of I/O providers

 ChangeLog                    |    3 +++
 src/utils/na-gconf2key.sh.in |    9 +++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8422630..086079e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -94,6 +94,9 @@
 
 2011-01-07 Pierre Wieser <pwieser trychlos org>
 
+	* src/utils/na-gconf2key.sh.in:
+	Make sure that GConf is at the end of the list of I/O providers.
+
 	* configure.ac:
 	* src/utils/Makefile.am:
 	* src/utils/na-gconf2key.sh.in:
diff --git a/src/utils/na-gconf2key.sh.in b/src/utils/na-gconf2key.sh.in
index 376225b..b8181cb 100644
--- a/src/utils/na-gconf2key.sh.in
+++ b/src/utils/na-gconf2key.sh.in
@@ -364,6 +364,15 @@ function add_pref
 	if [ "${_type}" = "list" ]; then
 		_newvalue="$(echo "${_value}" | sed -e 's/^\[//' -e 's/]$//' -e 's/,/;/g');"
 	fi
+
+	# make sure that GConf is at the end of the list of I/O providers
+	if [ "${_key}" = "io-providers-order" ]; then
+		if [ "$(echo ${_newvalue} | grep na-gconf)" != "" ]; then
+			typeset _v="$(echo "${_newvalue}" | sed -e 's/na-gconf//');na-gconf;"
+			_newvalue="$(echo "${_v}" | sed -e 's/;\+/;/g')"
+		fi
+	fi
+
 	echo "${_key} = ${_newvalue}" >> ${my_tmproot}.${_group}
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]