[nautilus-actions] na-gconf2key.sh: get ride of possible error messages when forcing gconfd-2 synchro
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] na-gconf2key.sh: get ride of possible error messages when forcing gconfd-2 synchro
- Date: Fri, 21 Jan 2011 18:57:51 +0000 (UTC)
commit dca9f03249cea778aa430fcce0d3131b138c6f65
Author: Pierre Wieser <pwieser trychlos org>
Date: Fri Jan 21 19:57:36 2011 +0100
na-gconf2key.sh: get ride of possible error messages when forcing gconfd-2 synchro
ChangeLog | 3 +++
src/utils/na-gconf2key.sh.in | 6 +++---
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e49f393..8ed4dde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2011-01-21 Pierre Wieser <pwieser trychlos org>
+ * src/utils/na-gconf2key.sh.in:
+ Get ride of possible error messages when forcing gconfd-2 synchro.
+
* src/nact/base-application.c:
* src/nact/base-application.h (base_application_message_dlg,
base_application_error_dlg, base_application_yesno_dlg):
diff --git a/src/utils/na-gconf2key.sh.in b/src/utils/na-gconf2key.sh.in
index cefac0b..44e6528 100644
--- a/src/utils/na-gconf2key.sh.in
+++ b/src/utils/na-gconf2key.sh.in
@@ -666,10 +666,10 @@ msg "${nbprefs} migrated preferences"
#fi
# force sync
-killall gconfd-2
+killall gconfd-2 2>/dev/null
let count=${nbitems}+${nbprefs}
-echo "count=${count}"
+#echo "count=${count}"
# at the end, we delete all package branch from GConf
if [ "${opt_delete}" = "yes" -a ${count} -gt 0 ]; then
@@ -687,6 +687,6 @@ if [ "${opt_delete}" = "yes" -a ${count} -gt 0 ]; then
fi
# re-force sync
-killall gconfd-2
+killall gconfd-2 2>/dev/null
exit
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]