diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index ad737da5b6fa51b4f53c855fa57da1dd96e097b9..b51ddd3e6d57e33495a74a46ce6a513fd9a20e57 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -16,6 +16,7 @@ XdgUrl::XdgUrl(const QString &xdgUrl, Core::Config *appConfig, Core::Config *use { _meta = _parse(); _destinations = _importDestinations(); + _archiveTypes = _importArchiveTypes(); } QJsonObject XdgUrl::_parse() @@ -88,6 +89,15 @@ QJsonObject XdgUrl::_importDestinations() return destinations; } +QJsonObject XdgUrl::_importArchiveTypes() +{ + //QJsonObject archiveTypes; + //QJsonObject appConfigArchiveTypes = _appConfig->get("archive_types"); + + //return archiveTypes; + return _appConfig->get("archive_types"); +} + bool XdgUrl::_installPlasmapkg(const QString &path, const QString &type) { return true; diff --git a/src/handlers/xdgurl.h b/src/handlers/xdgurl.h index 2503b6ae878263d41644fe548816feccb177d06b..6a94f508777cfbea6c7eecd360de74688e000415 100644 --- a/src/handlers/xdgurl.h +++ b/src/handlers/xdgurl.h @@ -33,6 +33,7 @@ public: private: QJsonObject _parse(); QJsonObject _importDestinations(); + QJsonObject _importArchiveTypes(); bool _installPlasmapkg(const QString &path, const QString &type = "plasmoid"); bool _uncompressArchive(const QString &path, const QString &targetDir); bool _download();