deb package: fix the buster webengine dep
This commit is contained in:
@@ -31,27 +31,7 @@
|
||||
email folders, which Konqueror or Dolphin have no way to access.</p>
|
||||
|
||||
|
||||
<h3>HTML interface</h3>
|
||||
|
||||
<p>This works more or less like the Recoll QT GUI, much simplified. The
|
||||
<a href="http://www.recoll.org/usermanual/rcl.search.lang.html">
|
||||
Recoll manual</a> describes the queries that can be performed.</p>
|
||||
|
||||
<p>Most pages in the interface should quite self-explanatory.</p>
|
||||
|
||||
<p>You normally enter this interface by entering "recoll:" or
|
||||
"recoll:/" in the Konqueror URL entry, and following the "search"
|
||||
link. You can also directly enter "recoll:/search.html".<br>
|
||||
|
||||
In most circumstances, entering a link like
|
||||
<a href="recoll:/john smith">recoll:/john smith</a> will also
|
||||
yield an HTML result list.</p>
|
||||
|
||||
<p>Compared to QT Recoll, the nice point is that you can click or
|
||||
drag/drop the icons to access the results in the standard desktop
|
||||
way.</p>
|
||||
|
||||
<h3>File manager interface</h3>
|
||||
<h3>File manager (e.g. Dolphin) interface</h3>
|
||||
|
||||
<p>The <i>path</i> part of the URI is taken as a Recoll query
|
||||
language string and executed. The results are displayed as
|
||||
@@ -98,5 +78,28 @@
|
||||
|
||||
<p><a href="recoll:///search.html">Recoll Search</a></p>
|
||||
|
||||
<h3>(Obsolete) HTML interface</h3>
|
||||
|
||||
<p>This used to work in konqueror, but appears to be broken in recent konqueror versions. Doc
|
||||
kept for nostalgy.</p>
|
||||
|
||||
<p>This works more or less like the Recoll QT GUI, much simplified. The
|
||||
<a href="http://www.recoll.org/usermanual/rcl.search.lang.html">
|
||||
Recoll manual</a> describes the queries that can be performed.</p>
|
||||
|
||||
<p>Most pages in the interface should quite self-explanatory.</p>
|
||||
|
||||
<p>You normally enter this interface by entering "recoll:" or
|
||||
"recoll:/" in the Konqueror URL entry, and following the "search"
|
||||
link. You can also directly enter "recoll:/search.html".<br>
|
||||
|
||||
In most circumstances, entering a link like
|
||||
<a href="recoll:/john smith">recoll:/john smith</a> will also
|
||||
yield an HTML result list.</p>
|
||||
|
||||
<p>Compared to QT Recoll, the nice point is that you can click or
|
||||
drag/drop the icons to access the results in the standard desktop
|
||||
way.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -189,14 +189,12 @@ static void createGoHomeEntry(KIO::UDSEntry& entry)
|
||||
static void createGoHelpEntry(KIO::UDSEntry& entry)
|
||||
{
|
||||
QString location =
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation,
|
||||
"kio_recoll/help.html");
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kio_recoll/help.html");
|
||||
entry.clear();
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_NAME, "help");
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_DISPLAY_NAME, "Recoll help (click me first)");
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_FILE_TYPE, S_IFREG);
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_TARGET_URL, QString("file://") +
|
||||
location);
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_TARGET_URL, QString("file://") + location);
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_ACCESS, 0500);
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_MIME_TYPE, "text/html");
|
||||
entry.fastInsert(KIO::UDSEntry::UDS_ICON_NAME, "help");
|
||||
@@ -292,8 +290,10 @@ void RecollProtocol::listDir(const QUrl& url)
|
||||
KIO::UDSEntry entry;
|
||||
createRootEntry(entry);
|
||||
entries.append(entry);
|
||||
createGoHomeEntry(entry);
|
||||
entries.append(entry);
|
||||
if (!m_alwaysdir) {
|
||||
createGoHomeEntry(entry);
|
||||
entries.append(entry);
|
||||
}
|
||||
createGoHelpEntry(entry);
|
||||
entries.append(entry);
|
||||
listEntries(entries);
|
||||
@@ -310,8 +310,7 @@ void RecollProtocol::listDir(const QUrl& url)
|
||||
// which offers an opportunity to not perform it.
|
||||
if (ingest.endSlashQuery()) {
|
||||
qDebug() << "RecollProtocol::listDir: Ends With /";
|
||||
error(ERR_SLAVE_DEFINED,
|
||||
QString::fromUtf8("Autocompletion search aborted"));
|
||||
error(ERR_SLAVE_DEFINED, QString::fromUtf8("Autocompletion search aborted"));
|
||||
return;
|
||||
}
|
||||
if (!syncSearch(qd)) {
|
||||
|
||||
@@ -146,12 +146,10 @@ void RecollProtocol::searchPage()
|
||||
mimeType("text/html");
|
||||
if (welcomedata.empty()) {
|
||||
QString location =
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation,
|
||||
"kio_recoll/welcome.html");
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kio_recoll/welcome.html");
|
||||
string reason;
|
||||
if (location.isEmpty() ||
|
||||
!file_to_string((const char *)location.toUtf8(),
|
||||
welcomedata, &reason)) {
|
||||
!file_to_string((const char *)location.toUtf8(), welcomedata, &reason)) {
|
||||
welcomedata = "<html><head><title>Recoll Error</title></head>"
|
||||
"<body><p>Could not locate Recoll welcome.html file: ";
|
||||
welcomedata += reason;
|
||||
|
||||
@@ -54,7 +54,7 @@ class KIOPluginForMetaData : public QObject
|
||||
RclConfig *RecollProtocol::o_rclconfig;
|
||||
|
||||
RecollProtocol::RecollProtocol(const QByteArray& pool, const QByteArray& app)
|
||||
: SlaveBase("recoll", pool, app), m_initok(false), m_alwaysdir(false)
|
||||
: SlaveBase("recoll", pool, app), m_initok(false), m_alwaysdir(true)
|
||||
{
|
||||
qDebug() << "RecollProtocol::RecollProtocol()";
|
||||
if (o_rclconfig == 0) {
|
||||
@@ -86,7 +86,9 @@ RecollProtocol::RecollProtocol(const QByteArray& pool, const QByteArray& app)
|
||||
if (cp) {
|
||||
m_alwaysdir = stringToBool(cp);
|
||||
} else {
|
||||
o_rclconfig->getConfParam("kio_always_dir", &m_alwaysdir);
|
||||
bool cfval;
|
||||
if (o_rclconfig->getConfParam("kio_always_dir", &cfval))
|
||||
m_alwaysdir = cfval;
|
||||
}
|
||||
|
||||
cp = getenv("RECOLL_KIO_STEMLANG");
|
||||
@@ -129,11 +131,10 @@ void RecollProtocol::mimetype(const QUrl& url)
|
||||
}
|
||||
|
||||
UrlIngester::UrlIngester(RecollProtocol *p, const QUrl& url)
|
||||
: m_parent(p), m_slashend(false), m_alwaysdir(false),
|
||||
: m_parent(p), m_slashend(false), m_alwaysdir(!url.scheme().compare("recollf")),
|
||||
m_retType(UIRET_NONE), m_resnum(0), m_type(UIMT_NONE)
|
||||
{
|
||||
qDebug() << "UrlIngester::UrlIngester: Url: " << url;
|
||||
m_alwaysdir = !url.scheme().compare("recollf");
|
||||
QString path = url.path();
|
||||
if (url.host().isEmpty()) {
|
||||
if (path.isEmpty() || !path.compare("/")) {
|
||||
@@ -165,8 +166,7 @@ UrlIngester::UrlIngester(RecollProtocol *p, const QUrl& url)
|
||||
} else {
|
||||
// Non empty host, url must be something like :
|
||||
// //search/query?q=query¶m=value...
|
||||
qDebug() << "UrlIngester::UrlIngester: host " <<
|
||||
url.host() << " path " << url.path();
|
||||
qDebug() << "UrlIngester::UrlIngester: host " << url.host() << " path " << url.path();
|
||||
if (url.host().compare("search") || url.path().compare("/query")) {
|
||||
return;
|
||||
}
|
||||
@@ -250,8 +250,7 @@ void RecollProtocol::get(const QUrl& url)
|
||||
switch (rettp) {
|
||||
case UrlIngester::UIRET_HELP: {
|
||||
QString location =
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation,
|
||||
"kio_recoll/help.html");
|
||||
QStandardPaths::locate(QStandardPaths::GenericDataLocation, "kio_recoll/help.html");
|
||||
redirection(QUrl::fromLocalFile(location));
|
||||
}
|
||||
goto out;
|
||||
@@ -289,17 +288,6 @@ void RecollProtocol::get(const QUrl& url)
|
||||
goto out;
|
||||
}
|
||||
} else if (ingest.isQuery(&qd)) {
|
||||
#if 0
|
||||
// Do we need this ?
|
||||
if (host.isEmpty()) {
|
||||
char cpage[20];
|
||||
sprintf(cpage, "%d", page);
|
||||
QString nurl = QString::fromAscii("recoll://search/query?q=") +
|
||||
query + "&qtp=" + opt + "&p=" + cpage;
|
||||
redirection(QUrl(nurl));
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
// htmlDoSearch does the search syncing (needs to know about changes).
|
||||
htmlDoSearch(qd);
|
||||
goto out;
|
||||
@@ -324,8 +312,7 @@ bool RecollProtocol::doSearch(const QueryDesc& qd)
|
||||
if (opt == 'f') {
|
||||
clp = new Rcl::SearchDataClauseFilename(qs);
|
||||
} else {
|
||||
clp = new Rcl::SearchDataClauseSimple(opt == 'o' ? Rcl::SCLT_OR :
|
||||
Rcl::SCLT_AND, qs);
|
||||
clp = new Rcl::SearchDataClauseSimple(opt == 'o' ? Rcl::SCLT_OR : Rcl::SCLT_AND, qs);
|
||||
}
|
||||
sdata = std::make_shared<Rcl::SearchData>(Rcl::SCLT_OR, m_stemlang);
|
||||
if (sdata && clp) {
|
||||
@@ -349,8 +336,7 @@ bool RecollProtocol::doSearch(const QueryDesc& qd)
|
||||
}
|
||||
|
||||
DocSequenceDb *src =
|
||||
new DocSequenceDb(m_rcldb, std::shared_ptr<Rcl::Query>(query),
|
||||
"Query results", sdata);
|
||||
new DocSequenceDb(m_rcldb, std::shared_ptr<Rcl::Query>(query), "Query results", sdata);
|
||||
if (src == 0) {
|
||||
error(KIO::ERR_SLAVE_DEFINED, u8s2qs("Can't build result sequence"));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user