}
#endif
+ /**
+ * enable high dpi support
+ */
+ QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
+
QApplication app(argc, argv);
- app.setAttribute(Qt::AA_UseHighDpiPixmaps, true);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon()));
KCrash::initialize();
KAboutData::setApplicationData(aboutData);
- KDBusService dolphinDBusService;
- DBusInterface interface;
-
QCommandLineParser parser;
aboutData.setupCommandLine(&parser);
QList<QUrl> urls = Dolphin::validateUris(args);
if (parser.isSet(QStringLiteral("daemon"))) {
+ KDBusService dolphinDBusService;
+ DBusInterface interface;
return app.exec();
}
// We need at least one URL to open Dolphin
urls.append(Dolphin::homeUrl());
}
-
+
if (splitView && urls.size() < 2) {
// Split view does only make sense if we have at least 2 URLs
urls.append(urls.last());
}
-
+
DolphinMainWindow* mainWindow = new DolphinMainWindow();
if (openFiles) {
}
}
+ KDBusService dolphinDBusService;
+ DBusInterface interface;
+
return app.exec(); // krazy:exclude=crash;
}