[Xfce4-commits] [xfce/xfce4-settings] 01/01: Fix syndaemon not starting with certain locales
noreply at xfce.org
noreply at xfce.org
Sun Nov 26 23:24:52 CET 2017
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-settings.
commit 2685d64f9659fa1ab8fb996b355b4f2a758c774c
Author: Florian Schüller <florian.schueller at gmail.com>
Date: Sun Nov 26 11:15:33 2017 +0100
Fix syndaemon not starting with certain locales
Fixed syndaemon not starting if the current locale creates a colon in the
float-number for syndaemon.
---
xfsettingsd/pointers.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xfsettingsd/pointers.c b/xfsettingsd/pointers.c
index 409a9b2..05ef03b 100644
--- a/xfsettingsd/pointers.c
+++ b/xfsettingsd/pointers.c
@@ -39,6 +39,7 @@
#include <gdk/gdkx.h>
#include <xfconf/xfconf.h>
#include <libxfce4util/libxfce4util.h>
+#include <locale.h>
#include <dbus/dbus-glib.h>
@@ -350,6 +351,7 @@ xfce_pointers_helper_syndaemon_check (XfcePointersHelper *helper)
disable_duration = xfconf_channel_get_double (helper->channel,
"/DisableTouchpadDuration",
2.0);
+ setlocale(LC_NUMERIC, "C"); /* syndaemon needs a dot for the float. Nothing localized! */
g_snprintf (disable_duration_string, sizeof (disable_duration_string),
"%.1f", disable_duration);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list