customized konqueror menus get changed back to kubuntu default version on each konqueor update

Bug #108892 reported by Shentey
6
Affects Status Importance Assigned to Milestone
kdebase (Ubuntu)
Invalid
Wishlist
Unassigned

Bug Description

A user may prefer to use another konqueror menu structure than kubuntu simplebrowser and change it to, say, the original KDE konqueror menu structure which is also shipped within the konqueror package.

Symptom:
Each time konqueror gets reinstalled or updated the menu structure is changed back to kubuntu simplebrowser structure.

Background:
The file konqueror.rc inside the folder /usr/share/apps/konqueror/ defines the menu structure for konqueror. By default, konqueror.rc is basically a copy of konq-simplebrowser.rc. When konqueror gets reinstalled or updated, however, konqueror.rc gets overwritten by the packages' own copy which causes konqueror to have the kubuntu simplebrowser menu structure again.

Possible Solution:
Let konqueror.rc be a symlink pointing to either konq-simplebrowser.rc or konqueror-orig.rc. If the package gets reinstalled or updated, check if there is already a konqueror.rc link. If it's there, do nothing; if it's not there, create it pointing to konq-simplebrowser.rc.

Revision history for this message
Shentey (shentey) wrote :

Here is a patch for the above bug report. Changes were made to the postrm and postinst scripts.

It works like the following: konqueor.rc is now a symlink. It only gets created if /usr/share/apps/konqueror/konqueror.rc doesn't exist. In this case it is linked to konq-simplebrowser.rc. No action is performed if the file exists already.

When the konqueror package gets *removed*, the link *gets not* removed. If the konqueror package gets *purged*, then the link *gets* removed.

P.S.: This is my first patch. Please let me know if there's something I could do better next time. :-)

Revision history for this message
Shentey (shentey) wrote :

I forgot something: The file konqueror.rc must be removed from the konqueror package for the patch to work.

Daniel Hahler (blueyed)
Changed in kdebase:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Harald Sitter (apachelogger) wrote :

At least in hardy, but probably also gutsy, we don't replace the original konqueror.rc anymore but just override it in the kubuntu-default-settings profile.

So switching to a vanilla KDE is either possible by deleting kubuntu-default-settings or by copying/linking the konqueror.rc to your .kde (it follows the very same structure as the global file location).

Changed in kdebase:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.