Browse Source

Allow non-root users to run in xnest_debug mode

Apply patch #2696. Thanks, espenhw.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/slim/trunk@172 7c53e7cc-98ea-0310-8f1f-a0b24da60408
iwamatsu 14 years ago
parent
commit
3eb201b839
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app.cpp

+ 2 - 1
app.cpp

@@ -187,11 +187,12 @@ App::App(int argc, char** argv)
             break;
         }
     }
-
+#ifndef XNEST_DEBUG 
     if (getuid() != 0 && !testing) {
         cerr << APPNAME << ": only root can run this program" << endl;
         exit(ERR_EXIT);
     }
+#endif /* XNEST_DEBUG */
 
 }