From 7574a7287e2e121c9d5c91a5f4ea38c5b3ae2a04 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 6 Nov 2011 02:28:57 -0600 Subject: Additional kde to tde renaming --- kdmlib/CMakeLists.txt | 6 +++--- kdmlib/kdmtsak.h | 32 ++++++++++++++++---------------- 2 files changed, 19 insertions(+), 19 deletions(-) (limited to 'kdmlib') 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 { -- cgit v1.2.1