|
|
|
@ -104,7 +104,7 @@ KioskRun::setKdeDirs(const TQStringList &dirs)
|
|
|
|
|
TQStringList xdgDataDirs = TQStringList::split(':', TQFile::decodeName(getenv("XDG_DATA_DIRS")));
|
|
|
|
|
if (xdgDataDirs.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
xdgDataDirs = TQStringList::split(':', KGlobal::dirs()->kfsstnd_prefixes());
|
|
|
|
|
xdgDataDirs = TQStringList::split(':', TDEGlobal::dirs()->kfsstnd_prefixes());
|
|
|
|
|
xdgDataDirs.pop_front();
|
|
|
|
|
for(TQStringList::Iterator it = xdgDataDirs.begin();
|
|
|
|
|
it != xdgDataDirs.end(); ++it)
|
|
|
|
@ -127,7 +127,7 @@ KioskRun::setKdeDirs(const TQStringList &dirs)
|
|
|
|
|
if (xdgConfigDirs.isEmpty())
|
|
|
|
|
{
|
|
|
|
|
xdgConfigDirs << "/etc/xdg";
|
|
|
|
|
TQString sysconfMenuDir = KGlobal::dirs()->findDirs("xdgconf-menu", TQString()).last();
|
|
|
|
|
TQString sysconfMenuDir = TDEGlobal::dirs()->findDirs("xdgconf-menu", TQString()).last();
|
|
|
|
|
if (sysconfMenuDir.endsWith("/menus/"))
|
|
|
|
|
xdgConfigDirs << sysconfMenuDir.left(sysconfMenuDir.length()-7);
|
|
|
|
|
|
|
|
|
@ -153,13 +153,13 @@ KioskRun::deleteDir(const TQString &dir)
|
|
|
|
|
return;
|
|
|
|
|
Q_ASSERT(dir.startsWith(m_homeDir));
|
|
|
|
|
|
|
|
|
|
KProcess proc;
|
|
|
|
|
TDEProcess proc;
|
|
|
|
|
proc << "rm" << "-rf" << dir;
|
|
|
|
|
proc.start(KProcess::Block);
|
|
|
|
|
proc.start(TDEProcess::Block);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
KioskRun::applyEnvironment(KProcess *p)
|
|
|
|
|
KioskRun::applyEnvironment(TDEProcess *p)
|
|
|
|
|
{
|
|
|
|
|
p->setEnvironment("HOME", m_homeDir);
|
|
|
|
|
p->setEnvironment("TDEHOME", m_homeDir+"/.trinity");
|
|
|
|
@ -201,17 +201,17 @@ KioskRun::updateSycoca()
|
|
|
|
|
dcopRef("kded", "kbuildsycoca").call("recreate");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KProcess*
|
|
|
|
|
TDEProcess*
|
|
|
|
|
KioskRun::run(const TQString &cmd, const TQStringList &args)
|
|
|
|
|
{
|
|
|
|
|
KProcess *proc = new KProcess(this);
|
|
|
|
|
TDEProcess *proc = new TDEProcess(this);
|
|
|
|
|
|
|
|
|
|
applyEnvironment(proc);
|
|
|
|
|
|
|
|
|
|
*proc << cmd;
|
|
|
|
|
*proc << args;
|
|
|
|
|
|
|
|
|
|
proc->start(KProcess::NotifyOnExit);
|
|
|
|
|
proc->start(TDEProcess::NotifyOnExit);
|
|
|
|
|
return proc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -759,15 +759,15 @@ KioskRun::setupRuntimeEnv()
|
|
|
|
|
|
|
|
|
|
TQString dcopServerFile = m_homeDir+"/.trinity/DCOPserver";
|
|
|
|
|
|
|
|
|
|
KProcess tdeinit;
|
|
|
|
|
TDEProcess tdeinit;
|
|
|
|
|
|
|
|
|
|
applyEnvironment(&tdeinit);
|
|
|
|
|
|
|
|
|
|
tdeinit << "tdeinit";
|
|
|
|
|
|
|
|
|
|
connect(&tdeinit, TQT_SIGNAL(processExited(KProcess *)), &dlg, TQT_SLOT(slotFinished()));
|
|
|
|
|
connect(&tdeinit, TQT_SIGNAL(processExited(TDEProcess *)), &dlg, TQT_SLOT(slotFinished()));
|
|
|
|
|
|
|
|
|
|
tdeinit.start(KProcess::NotifyOnExit);
|
|
|
|
|
tdeinit.start(TDEProcess::NotifyOnExit);
|
|
|
|
|
|
|
|
|
|
dlg.exec();
|
|
|
|
|
|
|
|
|
@ -811,19 +811,19 @@ KioskRun::shutdownRuntimeEnv()
|
|
|
|
|
delete m_dcopClient;
|
|
|
|
|
m_dcopClient = 0;
|
|
|
|
|
|
|
|
|
|
KProcess tdeinit;
|
|
|
|
|
TDEProcess tdeinit;
|
|
|
|
|
applyEnvironment(&tdeinit);
|
|
|
|
|
|
|
|
|
|
tdeinit << "tdeinit_shutdown";
|
|
|
|
|
|
|
|
|
|
tdeinit.start(KProcess::Block);
|
|
|
|
|
tdeinit.start(TDEProcess::Block);
|
|
|
|
|
|
|
|
|
|
KProcess dcopserver;
|
|
|
|
|
TDEProcess dcopserver;
|
|
|
|
|
applyEnvironment(&dcopserver);
|
|
|
|
|
|
|
|
|
|
dcopserver << "dcopserver_shutdown";
|
|
|
|
|
|
|
|
|
|
dcopserver.start(KProcess::Block);
|
|
|
|
|
dcopserver.start(TDEProcess::Block);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DCOPRef
|
|
|
|
|