Commit e0194cfd authored by Anupam Basak's avatar Anupam Basak

Fix for icons not loading in Appimage

parent c1547267
......@@ -42,8 +42,8 @@ else()
if(IS_APPIMAGE_PACKAGE)
find_package(MauiKit REQUIRED)
find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS I18n Notifications Config KIO Service Attica)
target_link_libraries(index KF5::KIOWidgets KF5::KIOFileWidgets KF5::ConfigCore KF5::Notifications KF5::KIOCore KF5::KIOWidgets KF5::I18n KF5::Service KF5::Attica)
find_package(KF5 ${KF5_VERSION} REQUIRED COMPONENTS I18n Notifications Config KIO Service Attica SyntaxHighlighting)
target_link_libraries(index KF5::KIOWidgets KF5::KIOFileWidgets KF5::ConfigCore KF5::Notifications KF5::KIOCore KF5::KIOWidgets KF5::I18n KF5::Service KF5::Attica KF5::SyntaxHighlighting)
endif()
endif()
......
......@@ -6,6 +6,10 @@
#include "index.h"
#include "inx.h"
#ifdef APPIMAGE_PACKAGE
#include <MauiKit/mauikit.h>
#endif
#ifdef Q_OS_ANDROID
#include <QGuiApplication>
#include <QIcon>
......@@ -34,6 +38,10 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
#endif
#ifdef APPIMAGE_PACKAGE
MauiKit::getInstance().initResources();
#endif
app.setApplicationName(INX::appName);
app.setApplicationVersion(INX::version);
app.setApplicationDisplayName(INX::displayName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment