Bug 231797 - Please provide way to customize default favorites list for new users
Summary: Please provide way to customize default favorites list for new users
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasma4
Classification: Unmaintained
Component: widget-kickoff (show other bugs)
Version: unspecified
Platform: Debian testing Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-22 17:00 UTC by Eckhart Wörner
Modified: 2018-06-08 20:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
patch implementing the requested feature (1.35 KB, patch)
2010-04-05 08:23 UTC, Petter Reinholdtsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eckhart Wörner 2010-03-22 17:00:36 UTC
Version:            (using KDE 4.3.4)
Installed from:    Debian testing/unstable Packages

This wish has been copied over from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570977

----

In Debian Edu, we want to change the list of applications showing up
in the default favorites list for new users.  One way to do this is to
create a file kickoffrc, but this only allow us to replace the current
list, not only append to the current list.  Looking at the source, I
trace the default list to this function ion
plasma/applets/kickoff/core/favoritesmodel.cpp:

    static QList<QString> defaultFavorites()
    {
        QList<QString> applications;
        applications << "konqbrowser" << "kmail" << "systemsettings" << "dolphin";

        QList<QString> desktopFiles;

        foreach (const QString& application, applications) {
            KService::Ptr service = KService::serviceByStorageId("kde4-" + application + "
.desktop");
            if (service) {
                desktopFiles << service->entryPath();
            }
        }

        return desktopFiles;
    }

The list of default entries are hardcoded in the source, as far as I
can see, to konqueror, kmail, system settings and the dolphin file
browser.  Can this code be changed to allow us to add some entries to
a directory that will show in in the default favorites list?

With KDE 3, we could do something similar for the KDE panel list by
adding a replacement share/apps/kicker/default-apps.  It would be
great if a similar or better feature is made available for KDE 4.


Happy hacking,
-- 
Petter Reinholdtsen
Comment 1 Petter Reinholdtsen 2010-04-05 08:23:00 UTC
Created attachment 42496 [details]
patch implementing the requested feature

Here is a draft patch based on the code in KDE 3
(/kdebase/kicker/kicker/core/containerarea.cpp).  I would very much
like input on the code used to locate the config file.  Is kickoff the
correct name for this system?  Is the file name default-favorites
good?  What about its location?  I believe it will put it under
/usr/share/apps/kickoff/default-favorites or
/usr/share/kde4/apps/kickoff/default-favorites, but have not verified
this.
Comment 2 Nate Graham 2018-06-08 20:27:33 UTC
Hello!

This feature request was filed for KDE Plasma 4, which reached end-of-support status in August 2015. KDE Plasma 5's desktop shell has been almost completely rewritten for better performance and usability, so it is likely that this feature request is already implemented in Plasma 5, or is no longer applicable.

Accordingly, we hope you understand why we must close this feature request. If the requested feature is still desired but not implemented in KDE Plasma 5.12 or later, please feel free to open a new ticket in the "plasmashell" product after reading https://community.kde.org/Get_Involved/Bug_Reporting

If you would like to get involved in KDE's bug triaging effort so that future mass bug closes like this are less likely, please read https://community.kde.org/Get_Involved#Bug_Triaging

Thanks for your understanding!

Nate Graham