Skip to content
Snippets Groups Projects
Commit 5283d783 authored by akiraohgaki's avatar akiraohgaki
Browse files

Drop deprecated xdg scheme

parent 175dd92b
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,7 @@ bool OcsUrlHandler::isValid() const
QString type = metadata_["type"].toString();
QString filename = metadata_["filename"].toString();
// Still support xdg and xdgs schemes for backward compatibility
if ((scheme == "ocs" || scheme == "ocss" || scheme == "xdg" || scheme == "xdgs")
if ((scheme == "ocs" || scheme == "ocss")
&& (command == "download" || command == "install")
&& QUrl(url).isValid()
&& configHandler_->getAppConfigInstallTypes().contains(type)
......
......@@ -6,4 +6,4 @@ Type=Application
Terminal=false
NoDisplay=true
Categories=Network;Utility;
MimeType=x-scheme-handler/ocs;x-scheme-handler/ocss;x-scheme-handler/xdg;x-scheme-handler/xdgs;
MimeType=x-scheme-handler/ocs;x-scheme-handler/ocss;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment