|
|
|
|
@ -1276,7 +1276,7 @@ tork::configureSecurity( int id ) //SLOT
|
|
|
|
|
cmd += "echo run";
|
|
|
|
|
|
|
|
|
|
filterproc = new KProcIO();
|
|
|
|
|
filterproc->setUseShell(TRUE);
|
|
|
|
|
filterproc->setUseShell(true);
|
|
|
|
|
TQString filterCommand= TQString("tdesu --noignorebutton --miniicon tork --caption '%1' -t -i %2 -d -c "
|
|
|
|
|
"'%3'").arg(filterRequest).arg(iconstring).arg(cmd);
|
|
|
|
|
connect( filterproc, TQ_SIGNAL(readReady(KProcIO * )),
|
|
|
|
|
@ -1285,7 +1285,7 @@ tork::configureSecurity( int id ) //SLOT
|
|
|
|
|
TQ_SLOT(filterExited()) );
|
|
|
|
|
|
|
|
|
|
*filterproc<<filterCommand;
|
|
|
|
|
filterproc->start(KProcIO::NotifyOnExit,TRUE);
|
|
|
|
|
filterproc->start(KProcIO::NotifyOnExit,true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1934,7 +1934,7 @@ void tork::startTor()
|
|
|
|
|
|
|
|
|
|
sayWhatImDoing("Starting Tor..");
|
|
|
|
|
childproc = new KProcIO();
|
|
|
|
|
childproc->setUseShell(TRUE);
|
|
|
|
|
childproc->setUseShell(true);
|
|
|
|
|
|
|
|
|
|
TQString torConfFile = writeConf();
|
|
|
|
|
|
|
|
|
|
@ -2571,7 +2571,7 @@ TQString tork::doHashPassword()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
hashproc = new KProcIO();
|
|
|
|
|
hashproc->setUseShell(TRUE);
|
|
|
|
|
hashproc->setUseShell(true);
|
|
|
|
|
m_hashedpassword = "";
|
|
|
|
|
TQString hashCommand=TQString("tor --hash-password %1").arg(TorkConfig::hashedControlPassword());
|
|
|
|
|
|
|
|
|
|
@ -2579,7 +2579,7 @@ TQString tork::doHashPassword()
|
|
|
|
|
|
|
|
|
|
connect( hashproc, TQ_SIGNAL(readReady(KProcIO * )),
|
|
|
|
|
TQ_SLOT(processHashProc(KProcIO * )) );
|
|
|
|
|
hashproc->start(KProcIO::NotifyOnExit,TRUE);
|
|
|
|
|
hashproc->start(KProcIO::NotifyOnExit,true);
|
|
|
|
|
|
|
|
|
|
while (hashproc->isRunning() && m_hashedpassword.isEmpty())
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
@ -2755,7 +2755,7 @@ void tork::startPrivoxy()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
privoxyproc = new KProcIO();
|
|
|
|
|
privoxyproc->setUseShell(TRUE);
|
|
|
|
|
privoxyproc->setUseShell(true);
|
|
|
|
|
|
|
|
|
|
TQString curpath = (TQString) getenv("PATH");
|
|
|
|
|
privoxyproc->setEnvironment("PATH",curpath +
|
|
|
|
|
@ -3176,7 +3176,7 @@ void tork::copyCookie()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
KProcIO *catproc = new KProcIO();
|
|
|
|
|
catproc->setUseShell(TRUE);
|
|
|
|
|
catproc->setUseShell(true);
|
|
|
|
|
TQString whichCommand= TQString(
|
|
|
|
|
"tdesu -c '"
|
|
|
|
|
"mkdir -p -m 600 %1/.tor;"
|
|
|
|
|
@ -3189,7 +3189,7 @@ void tork::copyCookie()
|
|
|
|
|
.arg(getenv("USER")).arg(getenv("HOME"));
|
|
|
|
|
|
|
|
|
|
*catproc<<whichCommand;
|
|
|
|
|
catproc->start(KProcIO::NotifyOnExit,TRUE);
|
|
|
|
|
catproc->start(KProcIO::NotifyOnExit,true);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -3945,7 +3945,7 @@ void tork::startNetStat()
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
netstatproc = new KProcIO();
|
|
|
|
|
netstatproc->setUseShell(TRUE);
|
|
|
|
|
netstatproc->setUseShell(true);
|
|
|
|
|
|
|
|
|
|
TQString netstatcmd = "netstat -ntucpe";
|
|
|
|
|
if (!TorkConfig::netstatLocation().isEmpty())
|
|
|
|
|
@ -4324,7 +4324,7 @@ void tork::setTorCaption(const TQString& caption)
|
|
|
|
|
|
|
|
|
|
if (caption.left(3) == "0.1"){
|
|
|
|
|
m_view->streamList->hideColumn(1);
|
|
|
|
|
m_view->streamList->header()->setResizeEnabled(FALSE, 1);
|
|
|
|
|
m_view->streamList->header()->setResizeEnabled(false, 1);
|
|
|
|
|
m_view->streamList->setResizeMode( TQListView::NoColumn );
|
|
|
|
|
m_UnCensorButton->unplug( toolBar("TorToolBar") );
|
|
|
|
|
m_SecurityButton->unplug( toolBar("MoreToolBar") );
|
|
|
|
|
@ -4336,10 +4336,10 @@ void tork::setTorCaption(const TQString& caption)
|
|
|
|
|
void tork::resetTor()
|
|
|
|
|
{
|
|
|
|
|
KProcIO *catproc = new KProcIO();
|
|
|
|
|
catproc->setUseShell(TRUE);
|
|
|
|
|
catproc->setUseShell(true);
|
|
|
|
|
TQString whichCommand= "tdesu -c 'killall -s HUP tor'";
|
|
|
|
|
*catproc<<whichCommand;
|
|
|
|
|
catproc->start(KProcIO::NotifyOnExit,TRUE);
|
|
|
|
|
catproc->start(KProcIO::NotifyOnExit,true);
|
|
|
|
|
connect( catproc, TQ_SIGNAL(processExited(TDEProcess *)),
|
|
|
|
|
TQ_SLOT(resetExited()) );
|
|
|
|
|
|
|
|
|
|
|