summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/protocolhandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index fb7ee936..a4b44f34 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -168,6 +168,15 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
return true;
}
+ // "apt" handling
+ // NOTE: this is a stupid workaround to ensure apt protocol works
+ if (_url.protocol() == QL1S("apt"))
+ {
+ kDebug() << "APT URL: " << _url;
+ (void)new KRun(_url, rApp->mainWindow(), 0, _url.isLocalFile());
+ return true;
+ }
+
// let webkit try to load a known (or missing) protocol...
if (KProtocolInfo::isKnownProtocol(_url))
return false;