On Monday 04 October 2010 18:01:50 Giacomo Comes wrote:
Hi all, I'm a system administrator and I will soon upgrade our systems running opensuse_11.1/kde_3.5 to opensuse_11.3/kde_4.4. I order to satisfy our users requests, I make several changes to the default configuration of the kde desktop. In this way I don't have to explain over and over again how to do this and how to change that.
For several changes, it was quite easy to find the corresponding file to modify in kde4.4. Unfortunately, there are some things that I was able to setup in kde3.5 but I cannot find the right equivalent in kde 4.4.
1), 2), 3'), 4) can be established by modifying the desktop scripts that run on login as described at http://techbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting However I would recommend KDE 4.5 from KDE:Release:45 instead of KDE 4.4 from vanilla 11.3, since the scripting there is much more mature. We have a 4.5 respin available here: http://home.kde.org/~kdelive/#reloaded Scripts mentioned below may only exist in a 4.5 based system, but the architecture for desktop scripting is the same in 4.4.
Here is the list of what I would like to change:
1) With kde3.5 putting: [General] LegacyKMenu=true in /etc/opt/kde3/share/config/kickerrc I was able to make the Classic Menu Style the default instead of the Kickoff Menu Style. What's the equivalent for kde4.4?
2) How can I add or replace a default widget/icon in the panel? I would like to add a couple of buttons right of the firefox and dolphin icons in the panel.
See /usr/share/kde4/apps/plasma-desktop/init/00-defaultLayout.js The layout org.kde.plasma-desktop.defaultPanel referenced at the end of the script is found at /usr/share/kde4/apps/plasma/layout- templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js
3) How can I add another default applet running in the System Tray? like KRandRTray for example?
Copy its .desktop file to /usr/share/autostart/ (or individual users' ~/.config/autostart/). Add OnlyShowIn=KDE if you have users on other desktops who should not have it running.
3) How to add another default widget in the right side of the panel?
As per 2)
4) How to change the default configuration of a widget (Digital Clock for example)?
You can modify config in the init scripts too. As an example, consider this update script /usr/share/kde4/apps/plasma-desktop/updates/systray-to- notifications-widget.js which modifies the system tray widget from 4.4 to the notification widget in 4.5. (Update scripts are run to modify existing config, init scripts run to create new config).
Of course, the preferred way to make such changes would be to edit files in share/config, but if that's not possible, any other way to accomplish what I need is welcome.
The smart way to carry the above out, once you have made it work, would be to create a package containing your organisation's desktop config in the OBS and add this to the package list for your default install, or even create a custom disk image including this script package using SUSE Studio. HTH Will -- Will Stephenson, openSUSE Team SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org