[konsole] [Bug 447872] konsole starts with Root Shell as default

Jiri Slaby bugzilla_noreply at kde.org
Mon Jan 3 12:22:00 GMT 2022


https://bugs.kde.org/show_bug.cgi?id=447872

--- Comment #6 from Jiri Slaby <jirislaby at gmail.com> ---
I believe you'll come up with sth like:
--- a/src/profile/ProfileManager.cpp
+++ b/src/profile/ProfileManager.cpp
@@ -211,7 +211,7 @@ void ProfileManager::loadAllProfiles(const QString
&defaultProfileFileName)
     const QStringList &paths = availableProfilePaths();
     for (const QString &path : paths) {
         Profile::Ptr profile = loadProfile(path);
-        if (profile && !defaultProfileFileName.isEmpty() &&
path.endsWith(defaultProfileFileName)) {
+        if (profile && !defaultProfileFileName.isEmpty() &&
QFileInfo(path).fileName() == defaultProfileFileName) {
             _defaultProfile = profile;
         }
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list