[gnome-session: 1/2] gnome-session: Make sure REGION is not confused by debug output
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session: 1/2] gnome-session: Make sure REGION is not confused by debug output
- Date: Thu, 13 Sep 2018 19:43:02 +0000 (UTC)
commit c449df5269e02c59ae83021a3110ec1b338a2bba
Author: Guido Günther <agx sigxcpu org>
Date: Thu Sep 13 15:58:23 2018 +0200
gnome-session: Make sure REGION is not confused by debug output
When gnome-session is invoked with G_MESSAGES_DEBUG=all set, $REGION
will also contain dconf's debug output:
$ G_MESSAGES_DEBUG=all gsettings get org.gnome.system.locale region
(process:14005): dconf-DEBUG: 15:59:46.581: watch_fast: "/system/locale/" (establishing: 0, active: 0)
'de_DE.UTF-8'
(process:14005): dconf-DEBUG: 15:59:46.582: unwatch_fast: "/system/locale/" (active: 0, establishing:
1)
Avoid that by setting G_MESSAGES_DEBUG empty.
gnome-session/gnome-session.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gnome-session/gnome-session.in b/gnome-session/gnome-session.in
index ce63df56..7ded3594 100755
--- a/gnome-session/gnome-session.in
+++ b/gnome-session/gnome-session.in
@@ -13,7 +13,7 @@ if [ "x$XDG_SESSION_TYPE" = "xwayland" ] &&
fi
fi
-SETTING=$(gsettings get org.gnome.system.locale region)
+SETTING=$(G_MESSAGES_DEBUG= gsettings get org.gnome.system.locale region)
REGION=${SETTING#\'}
REGION=${REGION%\'}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]