+
+QUrl Dolphin::homeUrl()
+{
+ return QUrl::fromUserInput(GeneralSettings::homeUrl(), QString(), QUrl::AssumeLocalFile);
+}
+
+void Dolphin::openNewWindow(const QList<QUrl> &urls, QWidget *window, const OpenNewWindowFlags &flags)
+{
+ QString command = QStringLiteral("dolphin");
+
+ if (flags.testFlag(OpenNewWindowFlag::Select)) {
+ command.append(QLatin1String(" --select"));
+ }
+
+ if (!urls.isEmpty()) {
+ command.append(QLatin1String(" %U"));
+ }
+
+ KRun::run(command, urls, window, qApp->applicationDisplayName(), qApp->windowIcon().name());
+}