[kde-doc-english] [plasma-desktop] applets/kickoff/core: Update default applications in kickoff

Jonathan Riddell jr at jriddell.org
Mon Nov 3 13:36:47 UTC 2014


Git commit b6cfe86a648333f6cae1d56bf7c547283348f72d by Jonathan Riddell.
Committed on 03/11/2014 at 13:35.
Pushed by jriddell into branch 'master'.

Update default applications in kickoff

Instead of defaulting to konqueror find the first browser from a list
Change konsole to ktp-contactlist, we want to appeal to non geeks
Change kmail for kontact, we provide a lovely PIM suite so we should show it by default
Change kwrite to Kate, everyone knows how to use tabbed interfaces these days

FEATURE
CHANGELOG
REVIEW:120538
GUI:
DIGEST:

M  +12   -1    applets/kickoff/core/favoritesmodel.cpp

http://commits.kde.org/plasma-desktop/b6cfe86a648333f6cae1d56bf7c547283348f72d

diff --git a/applets/kickoff/core/favoritesmodel.cpp b/applets/kickoff/core/favoritesmodel.cpp
index e26cf80..5ebcdff 100644
--- a/applets/kickoff/core/favoritesmodel.cpp
+++ b/applets/kickoff/core/favoritesmodel.cpp
@@ -109,7 +109,18 @@ public:
     static QList<QString> defaultFavorites()
     {
         QList<QString> applications;
-        applications << "konqbrowser" << "KMail2" << "systemsettings" << "dolphin" << "org.kde.konsole" << "org.kde.kwrite";
+
+        QList<QString> browsers;
+        browsers << "konqbrowser" << "rekonq" << "firefox" << "chromium-browser" << "google-chrome";
+        foreach (const QString& browser, browsers) {
+            KService::Ptr service = KService::serviceByStorageId(browser + ".desktop");
+            if (service) {
+                applications << browser;
+                break;
+            }
+        }
+
+        applications << "kontact" << "systemsettings" << "dolphin" << "ktp-contactlist" << "kate";
 
         QList<QString> desktopFiles;
 


More information about the kde-doc-english mailing list