summaryrefslogtreecommitdiff
path: root/src/lib/eeze/eeze_sensor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eeze/eeze_sensor.c')
-rw-r--r--src/lib/eeze/eeze_sensor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_sensor.c b/src/lib/eeze/eeze_sensor.c
index 30c5d3c8e2..831fb12df2 100644
--- a/src/lib/eeze/eeze_sensor.c
+++ b/src/lib/eeze/eeze_sensor.c
@@ -4,6 +4,7 @@
4 4
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
7#include <unistd.h>
7#include <Eina.h> 8#include <Eina.h>
8#include <Ecore.h> 9#include <Ecore.h>
9#include <Eeze_Sensor.h> 10#include <Eeze_Sensor.h>
@@ -81,7 +82,7 @@ eeze_sensor_modules_load(void)
81 * is one of these items. We do load the modules from the builddir if the 82 * is one of these items. We do load the modules from the builddir if the
82 * environment is set. Normal case is to use installed modules from system 83 * environment is set. Normal case is to use installed modules from system
83 */ 84 */
84 if (getenv("EFL_RUN_IN_TREE")) 85 if ((getuid() == getuid()) && (getenv("EFL_RUN_IN_TREE")))
85 { 86 {
86 const char **itr; 87 const char **itr;
87 88