data, main: Move debug envvar to service file

To make it easier to debug iio-sensor-proxy
without recompiling.
This commit is contained in:
Bastien Nocera
2016-11-22 14:19:12 +01:00
parent 5468452f7a
commit ba9a803628
2 changed files with 2 additions and 2 deletions

View File

@@ -5,3 +5,5 @@ Description=IIO Sensor Proxy service
Type=dbus Type=dbus
BusName=net.hadess.SensorProxy BusName=net.hadess.SensorProxy
ExecStart=@sbindir@/iio-sensor-proxy ExecStart=@sbindir@/iio-sensor-proxy
#Uncomment this to enable debug
#Environment="G_MESSAGES_DEBUG=all"

View File

@@ -766,8 +766,6 @@ int main (int argc, char **argv)
const gchar * const subsystems[] = { "iio", "input", "platform", NULL }; const gchar * const subsystems[] = { "iio", "input", "platform", NULL };
guint i; guint i;
/* g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); */
g_usleep (G_USEC_PER_SEC * 3); g_usleep (G_USEC_PER_SEC * 3);
data = g_new0 (SensorData, 1); data = g_new0 (SensorData, 1);