[glib] gsettings: Suppress error messages of completion
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsettings: Suppress error messages of completion
- Date: Thu, 5 Oct 2017 13:41:42 +0000 (UTC)
commit acea147cbce0fd7c9a6435ad88479642c9900685
Author: Jiro Matsuzawa <jmatsuzawa gnome org>
Date: Tue Mar 12 14:23:22 2013 +0900
gsettings: Suppress error messages of completion
https://bugzilla.gnome.org/show_bug.cgi?id=695681
gio/completion/gsettings | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/completion/gsettings b/gio/completion/gsettings
index 0316e29..22b2ac3 100644
--- a/gio/completion/gsettings
+++ b/gio/completion/gsettings
@@ -35,11 +35,11 @@ __gsettings() {
choices=$'list-schemas\nlist-relocatable-schemas\nlist-keys\nlist-children\nlist-recursively\nget\nrange\nset\nreset\nreset-recursively\nwritable\nmonitor'
;;
list-keys|list-children|list-recursively|reset-recursively)
- choices="$(gsettings $schemadir list-schemas)"$'\n'"$(gsettings $schemadir
list-relocatable-schemas | sed -e 's.$.:/.')"
+ choices="$(gsettings $schemadir list-schemas 2> /dev/null)"$'\n'"$(gsettings $schemadir
list-relocatable-schemas 2> /dev/null | sed -e 's.$.:/.')"
;;
get|range|set|reset|writable|monitor|describe)
- choices="$(gsettings $schemadir list-schemas | sed -e 's.$. .')"$'\n'"$(gsettings $schemadir
list-relocatable-schemas | sed -e 's.$.:/.')"
+ choices="$(gsettings $schemadir list-schemas 2> /dev/null | sed -e 's.$. .')"$'\n'"$(gsettings
$schemadir list-relocatable-schemas 2> /dev/null | sed -e 's.$.:/.')"
;;
esac
;;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]