Commit c449df52 authored by Guido Günther's avatar Guido Günther

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.
parent 99b8171e
......@@ -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%\'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment