You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
705 B
30 lines
705 B
13 years ago
|
diff --git a/src/main.cpp b/src/main.cpp
|
||
|
index 7c45fcf..b933832 100644
|
||
13 years ago
|
--- a/src/main.cpp
|
||
|
+++ b/src/main.cpp
|
||
|
@@ -24,6 +24,7 @@
|
||
12 years ago
|
#include <tdemessagebox.h>
|
||
12 years ago
|
#include <tdemainwindow.h>
|
||
13 years ago
|
#include <kapp.h>
|
||
|
+#include <kuser.h>
|
||
|
|
||
12 years ago
|
#include <tdelocale.h>
|
||
13 years ago
|
#include <dcopclient.h>
|
||
13 years ago
|
@@ -134,11 +135,11 @@ int main ( int argc, char *argv[] )
|
||
|
}
|
||
|
else
|
||
|
{
|
||
11 years ago
|
-// if (getenv("USER") != TQString("root"))
|
||
13 years ago
|
-// {
|
||
|
-// KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
|
||
|
-// exit(0);
|
||
|
-// }
|
||
11 years ago
|
+ if (getenv("USER") != TQString("root"))
|
||
|
+ {
|
||
|
+ KMessageBox::error( 0, I18N_NOOP( "Kvpnc must be started as root!" ) );
|
||
|
+ exit(0);
|
||
|
+ }
|
||
13 years ago
|
|
||
12 years ago
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
||
13 years ago
|
|