From ba9a80362842b07fe0b66080dd76a1f71d76b797 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 22 Nov 2016 14:19:12 +0100 Subject: [PATCH] data, main: Move debug envvar to service file To make it easier to debug iio-sensor-proxy without recompiling. --- data/iio-sensor-proxy.service.in | 2 ++ src/iio-sensor-proxy.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/iio-sensor-proxy.service.in b/data/iio-sensor-proxy.service.in index c69e0db..e4b6e78 100644 --- a/data/iio-sensor-proxy.service.in +++ b/data/iio-sensor-proxy.service.in @@ -5,3 +5,5 @@ Description=IIO Sensor Proxy service Type=dbus BusName=net.hadess.SensorProxy ExecStart=@sbindir@/iio-sensor-proxy +#Uncomment this to enable debug +#Environment="G_MESSAGES_DEBUG=all" diff --git a/src/iio-sensor-proxy.c b/src/iio-sensor-proxy.c index c6b6b52..677f296 100644 --- a/src/iio-sensor-proxy.c +++ b/src/iio-sensor-proxy.c @@ -766,8 +766,6 @@ int main (int argc, char **argv) const gchar * const subsystems[] = { "iio", "input", "platform", NULL }; guint i; - /* g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); */ - g_usleep (G_USEC_PER_SEC * 3); data = g_new0 (SensorData, 1);