Posts Tagged ‘bazaar’

Kubuntu KDE 4: Where da plasmoid?

May 12, 2009

Several months ago, excited to try out the shiny new KDE 4, I upgraded to Kubuntu 8.10. Within 5 minutes (thanks to some interesting word choice on a properties menu) I had managed to delete the taskbar (the bar at the bottom) and the system tray and program launcher along with it. Unfortunately I couldn’t seem to hit the right keyword combination in my internet searching to find instructions on how to bring them back without removing my ~/.kde directory (not desirable).

I had an idea about putting a new ~/.kde folder under revision control using SVN and deleting the taskbar to see what file controls the plasmoids. Fortunately my friend in the next cube knew about bazaar (a distributed revision control system) which has an extremely low overhead compared to SVN and is very easy to use. Between the two of us we came up with the following procedure which allowed us to discover that the ~/.kde/share/config/plasma-appletsrc file controls the presence/absence of plasmoids for KDE 4.

This is what we did:

  1. Rename the ~/.kde directory to ~/.kde_bak so that a new one is created when you log out and log in. This will restore the panel at the bottom.
  2. $ cd ~/.kde/share
  3. $ bzr add .   #with bazaar installed
  4. $ bzr ci -m “Hunting for plasmoid control.”
  5. Once again delete the panel at the bottom.
  6. $ bzr status
  7. From the files that were reported as being modified we identified “plasma-appletsrc” as the likely target.
  8. $ bzr diff config/plasma-appletsrc   #that looks like the one
  9. $ bzr revert config/plasma-appletsrc
  10. Copy the prestine version of plasma-appletsrc into ~/.kde_bak/share/config
  11. Remove the current ~/.kde and restore ~/.kde_bak to its rightful place as king!
Lots of containment definitions missing from the plasma-appletsrc file corresponding to the missing task bar.

Lots of containment definitions missing from the plasma-appletsrc file corresponding to the missing task bar.

Advertisements