Registered Member
|
For each new user that has no .kde directory, a new panel is created and this script is executed:
/usr/share/solydxk/default-settings/kde4-profile/default/share/apps/plasma-desktop/init/00-defaultLayout.js Code: http://pastebin.com/NHNW98j9 This works, but since KDE 4.10, the ActivityManager widget is added after the Kickoff menu. I have tried to put this line in that script, and in a separate script, but to no avail:
How can I prevent this from happening? |
Registered Member
|
Change /usr/share/kde4/apps/plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js (at least that's the path on openSUSE, don't know about Debian but it should be similar).
Maybe you have to remove /usr/share/kde4/apps/plasma-desktop/updates/addShowActivitiesManagerPlasmoid.js as well. |
Registered Member
|
Thanks, wolfi323, that was really quick!
Unfortunately, these would be re-created with the next update of plasma-desktop, and that's not something I wish for our users to solve themselves. My script is correctly executed, but somewhere later in the process, another script adds the activities manager. I'm looking for a more sustainable solution. [EDIT] In the above mentioned layout.js, more widgets are added, but in my panel only the activity manager is added. So, I suppose the layout.js script is not executed. |
Manager
|
what if you populate the new users ~/.kde/config with pre-defined plasma-destop*rc files w/o the activities widget when you create the user, maybe using /etc/skel? or create a first run script that replaces those files when the user first logs in?
|
Registered Member
|
Let's say it's my last resort: I like to keep my packages as clean as possible - less preconfigured config files is something I try to aim for, but I need to be realistic. If it can't be done with the existing script, I'll add the rc file to /etc/skel |
Registered Member
|
See here: http://techbase.kde.org/KDE_System_Admi ... pScripting
So it should help to create a file .kde/share/config/plasma-desktoprc in /etc/skel with an [Updates] group like this:
This should prevent the execution of that script. Or try to create such a file as default configuration in `kde4-config --path config` (would be /etc/kde4/share/config/plasma-desktoprc on openSUSE). |
Registered Member
|
Oh, and according to that page, something like this should work for removing the ActivityManager:
But the question of course is, which script is run first... |
Registered Member
|
Thanks for the help!
This should be enough to get me started. Today is the day I have to synchronize and test the updated repositories, and tomorrow I'll start building the new iso's. I'll post the outcome of this issue in one or two days. |
Registered Member
|
I've adapted the postinst script of the package that sets the system configuration for each distribution separately.
By diverting /usr/share/kde4/apps/plasma-desktop/updates/addShowActivitiesManagerPlasmoid.js I successfully prevent the creation of the activity manager widget in the panel, and future updates will not have an effect on this either. It's a pragmatic, but not very aesthetic solution to the problem. Thanks again for your help! |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]