diff options
Diffstat (limited to 'kdmlib')
-rw-r--r-- | kdmlib/CMakeLists.txt | 6 | ||||
-rw-r--r-- | kdmlib/kdmtsak.h | 32 |
2 files changed, 19 insertions, 19 deletions
diff --git a/kdmlib/CMakeLists.txt b/kdmlib/CMakeLists.txt index f3e8d708e..4b2e54dc0 100644 --- a/kdmlib/CMakeLists.txt +++ b/kdmlib/CMakeLists.txt @@ -33,7 +33,7 @@ install( FILES kgreeterplugin.h DESTINATION ${INCLUDE_INSTALL_DIR} ) tde_add_kpart( kgreet_classic AUTOMOC SOURCES kgreet_classic.cpp - LINK kdeui-shared + LINK tdeui-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) @@ -42,7 +42,7 @@ tde_add_kpart( kgreet_classic AUTOMOC tde_add_kpart( kgreet_pam AUTOMOC SOURCES kgreet_pam.cpp - LINK kdeui-shared + LINK tdeui-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) @@ -51,7 +51,7 @@ tde_add_kpart( kgreet_pam AUTOMOC tde_add_kpart( kgreet_winbind AUTOMOC SOURCES kgreet_winbind.cpp - LINK kdeui-shared + LINK tdeui-shared DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/kdmlib/kdmtsak.h b/kdmlib/kdmtsak.h index c9664ae34..9c512a59b 100644 --- a/kdmlib/kdmtsak.h +++ b/kdmlib/kdmtsak.h @@ -80,48 +80,48 @@ inline int tde_sak_verify_calling_process() if ((procparent == "kdesktop") || (procparent == "kdesktop_lock") || (procparent == "kdm")) { authorized = true; } - else if (procparent == "kdeinit") { - printf("kdeinit detected\n\r"); + else if (procparent == "tdeinit") { + printf("tdeinit detected\n\r"); // A bit more digging is needed to see if this is an authorized process or not - // Get the kdeinit command - char kdeinitcmdline[8192]; + // Get the tdeinit command + char tdeinitcmdline[8192]; FILE *fp = fopen(TQString("/proc/%1/cmdline").arg(parentproc).ascii(),"r"); if (fp != NULL) { - if (fgets (kdeinitcmdline, 8192, fp) != NULL) + if (fgets (tdeinitcmdline, 8192, fp) != NULL) fclose (fp); } - kdeinitcmdline[8191] = 0; - TQString kdeinitCommand = kdeinitcmdline; + tdeinitcmdline[8191] = 0; + TQString tdeinitCommand = tdeinitcmdline; // Also get the environment, specifically the path - TQString kdeinitEnvironment; - char kdeinitenviron[8192]; + TQString tdeinitEnvironment; + char tdeinitenviron[8192]; fp = fopen(TQString("/proc/%1/environ").arg(parentproc).ascii(),"r"); if (fp != NULL) { int c; int pos = 0; do { c = fgetc(fp); - kdeinitenviron[pos] = c; + tdeinitenviron[pos] = c; pos++; if (c == 0) { - TQString curEnvLine = kdeinitenviron; + TQString curEnvLine = tdeinitenviron; if (curEnvLine.startsWith("PATH=")) { - kdeinitEnvironment = curEnvLine.mid(5); + tdeinitEnvironment = curEnvLine.mid(5); } pos = 0; } } while ((c != EOF) && (pos < 8192)); fclose (fp); } - kdeinitenviron[8191] = 0; + tdeinitenviron[8191] = 0; #ifdef DEBUG - printf("Called executable name is: %s\n\r", kdeinitCommand.ascii()); - printf("Environment is: %s\n\r", kdeinitEnvironment.ascii()); + printf("Called executable name is: %s\n\r", tdeinitCommand.ascii()); + printf("Environment is: %s\n\r", tdeinitEnvironment.ascii()); #endif - if ((kdeinitCommand == "kdesktop [kdeinit]") && (kdeinitEnvironment.startsWith(KDE_BINDIR))) { + if ((tdeinitCommand == "kdesktop [tdeinit]") && (tdeinitEnvironment.startsWith(KDE_BINDIR))) { authorized = true; } else { |