blob: 0729793b7a933220516241e7c8c7240383f72984 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff --git a/src/main.cpp b/src/main.cpp
index 7c45fcf..b933832 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -24,6 +24,7 @@
#include <tdemessagebox.h>
#include <tdemainwindow.h>
#include <kapp.h>
+#include <kuser.h>
#include <tdelocale.h>
#include <dcopclient.h>
@@ -134,11 +135,11 @@ int main ( int argc, char *argv[] )
}
else
{
-// if (getenv("USER") != TQString("root"))
-// {
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
-// exit(0);
-// }
+ if (getenv("USER") != TQString("root"))
+ {
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
+ exit(0);
+ }
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|