X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/38c34eeca315c7be58e65d4d3fb72aaf7b866719..0d2aa8a1bed1cef4a2dd99493dacf40812807cf9:/src/main.cpp diff --git a/src/main.cpp b/src/main.cpp index e1e559f97..e93ee43bc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -54,10 +54,16 @@ int main(int argc, char **argv) // Prohibit using sudo or kdesu (but allow using the root user directly) if (getuid() == 0) { if (!qEnvironmentVariableIsEmpty("SUDO_USER")) { - std::cout << "Running Dolphin with sudo can cause bugs and expose you to security vulnerabilities." << std::endl; + std::cout << "Running Dolphin with sudo is not supported as it can cause bugs and expose you to security vulnerabilities. Instead, install the " + "`kio-admin` package from your distro and use it to manage root-owned locations by right-clicking on them and selecting \"Open as " + "Administrator\"." + << std::endl; return EXIT_FAILURE; } else if (!qEnvironmentVariableIsEmpty("KDESU_USER")) { - std::cout << "Running Dolphin with kdesu can cause bugs and expose you to security vulnerabilities." << std::endl; + std::cout << "Running Dolphin with kdesu is not supported as it can cause bugs and expose you to security vulnerabilities. Instead, install the " + "`kio-admin` package from your distro and use it to manage root-owned locations by right-clicking on them and selecting \"Open as " + "Administrator\"." + << std::endl; return EXIT_FAILURE; } } @@ -73,8 +79,6 @@ int main(int argc, char **argv) QApplication app(argc, argv); app.setWindowIcon(QIcon::fromTheme(QStringLiteral("system-file-manager"), app.windowIcon())); - KIO::PreviewJob::setDefaultDevicePixelRatio(app.devicePixelRatio()); - KCrash::initialize(); #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) @@ -92,7 +96,7 @@ int main(int argc, char **argv) i18nc("@title", "File Manager"), KAboutLicense::GPL, i18nc("@info:credit", "(C) 2006-2022 The Dolphin Developers")); - aboutData.setHomepage(QStringLiteral("https://kde.org/applications/system/org.kde.dolphin")); + aboutData.setHomepage(QStringLiteral("https://apps.kde.org/dolphin")); aboutData.addAuthor(i18nc("@info:credit", "Felix Ernst"), i18nc("@info:credit", "Maintainer (since 2021) and developer"), QStringLiteral("felixernst@kde.org")); @@ -241,6 +245,8 @@ int main(int argc, char **argv) } } + mainWindow->setSessionAutoSaveEnabled(GeneralSettings::rememberOpenedTabs()); + #if HAVE_KUSERFEEDBACK auto feedbackProvider = DolphinFeedbackProvider::instance(); Q_UNUSED(feedbackProvider)