|
|
@ -40,7 +40,7 @@ AppImpl::AppImpl(TDEIO_AppInfo *slave) : TQObject(), m_slave(slave)
|
|
|
|
|
|
|
|
|
|
|
|
void AppImpl::listRoot()
|
|
|
|
void AppImpl::listRoot()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdDebug() << "AppImpl::listRoot" << endl;
|
|
|
|
kdDebug(7129) << "AppImpl::listRoot" << endl;
|
|
|
|
|
|
|
|
|
|
|
|
// Top level entry
|
|
|
|
// Top level entry
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
@ -48,7 +48,7 @@ void AppImpl::listRoot()
|
|
|
|
m_slave->listEntry(entry, false);
|
|
|
|
m_slave->listEntry(entry, false);
|
|
|
|
|
|
|
|
|
|
|
|
TQStringList dirList = TQStringList::split(":", getenv("PATH"));
|
|
|
|
TQStringList dirList = TQStringList::split(":", getenv("PATH"));
|
|
|
|
kdDebug() << dirList << endl;
|
|
|
|
kdDebug(7129) << dirList << endl;
|
|
|
|
|
|
|
|
|
|
|
|
TQMap<TQString, bool> knownApps;
|
|
|
|
TQMap<TQString, bool> knownApps;
|
|
|
|
TQValueList<TDEIO::UDSEntry> list;
|
|
|
|
TQValueList<TDEIO::UDSEntry> list;
|
|
|
@ -106,7 +106,7 @@ bool AppImpl::parseURL(const KURL &url, TQString &name, TQString &path) const
|
|
|
|
|
|
|
|
|
|
|
|
bool AppImpl::statByName(const TQString &filename, TDEIO::UDSEntry &entry)
|
|
|
|
bool AppImpl::statByName(const TQString &filename, TDEIO::UDSEntry &entry)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdDebug() << "AppImpl::statByName" << endl;
|
|
|
|
kdDebug(7129) << "AppImpl::statByName" << endl;
|
|
|
|
|
|
|
|
|
|
|
|
TQStringList dirList = TQStringList::split(":", getenv("PATH"));
|
|
|
|
TQStringList dirList = TQStringList::split(":", getenv("PATH"));
|
|
|
|
|
|
|
|
|
|
|
@ -334,7 +334,7 @@ void AppImpl::createTDEConfigEntry(TQValueList<TDEIO::UDSEntry> &list, const TQS
|
|
|
|
|
|
|
|
|
|
|
|
// Resource file
|
|
|
|
// Resource file
|
|
|
|
TQString TDEDataDir = locate("config", shortname + "rc");
|
|
|
|
TQString TDEDataDir = locate("config", shortname + "rc");
|
|
|
|
kdDebug() << "TDEDataDir: " << TDEDataDir << endl;
|
|
|
|
kdDebug(7129) << "TDEDataDir: " << TDEDataDir << endl;
|
|
|
|
if (TDEDataDir.isEmpty())
|
|
|
|
if (TDEDataDir.isEmpty())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -376,7 +376,7 @@ void AppImpl::createStandardConfigEntry(TQValueList<TDEIO::UDSEntry> &list, cons
|
|
|
|
isFolder = true;
|
|
|
|
isFolder = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kdDebug() << "createStandardConfigEntry: " << fname << endl;
|
|
|
|
kdDebug(7129) << "createStandardConfigEntry: " << fname << endl;
|
|
|
|
|
|
|
|
|
|
|
|
entry.clear();
|
|
|
|
entry.clear();
|
|
|
|
addAtom(entry, TDEIO::UDS_URL, 0, fname);
|
|
|
|
addAtom(entry, TDEIO::UDS_URL, 0, fname);
|
|
|
@ -424,7 +424,7 @@ void AppImpl::createTmpDirEntry(TQValueList<TDEIO::UDSEntry> &list, const TQStri
|
|
|
|
isFolder = true;
|
|
|
|
isFolder = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kdDebug() << "createTmpDirEntry: " << fname << endl;
|
|
|
|
kdDebug(7129) << "createTmpDirEntry: " << fname << endl;
|
|
|
|
|
|
|
|
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
|
addAtom(entry, TDEIO::UDS_URL, 0, fname);
|
|
|
|
addAtom(entry, TDEIO::UDS_URL, 0, fname);
|
|
|
@ -467,7 +467,7 @@ void AppImpl::createXDGDirEntry(TQValueList<TDEIO::UDSEntry> &list, const TQStri
|
|
|
|
isFolder = true;
|
|
|
|
isFolder = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
kdDebug() << "createXdgDirEntry: " << filename << endl;
|
|
|
|
kdDebug(7129) << "createXdgDirEntry: " << filename << endl;
|
|
|
|
|
|
|
|
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
|
TDEIO::UDSEntry entry;
|
|
|
|
addAtom(entry, TDEIO::UDS_URL, 0, filename);
|
|
|
|
addAtom(entry, TDEIO::UDS_URL, 0, filename);
|
|
|
@ -491,7 +491,7 @@ void AppImpl::createXDGDirEntry(TQValueList<TDEIO::UDSEntry> &list, const TQStri
|
|
|
|
|
|
|
|
|
|
|
|
bool AppImpl::listAppContents(const TQString &name, TQValueList<TDEIO::UDSEntry> &list)
|
|
|
|
bool AppImpl::listAppContents(const TQString &name, TQValueList<TDEIO::UDSEntry> &list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdDebug() << "AppImpl::listAppContents" << endl;
|
|
|
|
kdDebug(7129) << "AppImpl::listAppContents" << endl;
|
|
|
|
|
|
|
|
|
|
|
|
// Create entry for binary file
|
|
|
|
// Create entry for binary file
|
|
|
|
createExeEntry(list, name, getAppAddress(name));
|
|
|
|
createExeEntry(list, name, getAppAddress(name));
|
|
|
|