[nautilus-actions] Force GConf I/O provider to be read-only after the migration



commit b1aeeb3b04b5c4f10833f0f86ac60d8b20587ac3
Author: Pierre Wieser <pwieser trychlos org>
Date:   Tue Jan 3 21:52:29 2012 +0100

    Force GConf I/O provider to be read-only after the migration

 ChangeLog                    |    2 ++
 src/utils/na-gconf2key.sh.in |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0f5e750..cbfb393 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2012-01-03 Pierre Wieser <pwieser trychlos org>
 
+	* src/utils/na-gconf2key.sh.in: Force GConf I/O provider to be read-only.
+
 	* src/utils/console-utils.h: Remove superfluous 'glib-object.h' include.
 
 	* src/utils/na-set-conf.c: New program.
diff --git a/src/utils/na-gconf2key.sh.in b/src/utils/na-gconf2key.sh.in
index 14618ce..fef9066 100644
--- a/src/utils/na-gconf2key.sh.in
+++ b/src/utils/na-gconf2key.sh.in
@@ -679,7 +679,7 @@ if [ "${opt_admin}" = "no" ]; then
 	done
 fi
 
-# whether we are running admin tasks or not, we force the GConf i/o provider
+# whether we are running admin tasks or not, we try ti force the GConf i/o provider
 # to be locked
 cat <<! >${my_tmproot}.io-provider_na-gconf
 # Starting with 3.1.0, GConf as I/O provider is deprecated
@@ -690,7 +690,8 @@ writable = false
 let nbprefs=0
 
 if [ -e ${destconf} ]; then
-	msg "${destconf} already exists: do not replace it"
+	msg "${destconf} already exists: do not replace it, update the N-A configuration file instead"
+	command "@pkglibexecdir@/na-set-conf --group 'io-provider na-gconf' --key writable --type bool --value false"
 else
 	nbprefs=$(cat ${my_tmproot}.nact ${my_tmproot}.runtime ${my_tmproot}.io-provider_* 2>/dev/null | wc -l)
 



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