[packaging] Menu item is not removed on uninstall

Bug #340162 reported by Alex Ruddick
6
Affects Status Importance Assigned to Milestone
Ubuntu
New
Low
Unassigned

Bug Description

Binary package hint: usb-creator

After uninstalling usb-creator, the menu item remained in System > Administration (with an empty window icon).

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

That's likely due to a left-over desktop file in your profile. Could you please try with a new user profile and see if that exhibits the same issue?

Thanks

Changed in usb-creator:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Alex Ruddick (alexrudd0) wrote :

A new user profile does not show the same issue.

My user profile has ~/.local/share/applications and the new one does not. This directory has the extraneous desktop file.

I have KDE4 installed alongside GNOME, if that makes a difference.

Revision history for this message
Alex Ruddick (alexrudd0) wrote :

Apparently the problem is alacarte. I can get the new profile to have the leftover file if I touch the menu item in alacarte (i.e. unheck and check it). I'll file a bug for that, I guess.

In any case, it would still make sense for the package to remove the file in ~/.local/share/applications. Not sure if this affects other packages.

Changed in usb-creator:
status: Incomplete → Confirmed
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

That's not a bug in usb-creator. The package manager certainly shouldn't be removing files that it doesn't own, from users home directories. I'm not really sure of any way around this, but I'll keep the bug open for now.

Changed in usb-creator:
status: Confirmed → New
Revision history for this message
Chris Coulson (chrisccoulson) wrote :

FWIW, the extraneous desktop file only appeared in ~/.local/share/applications because you previously edited the menu entry with Alacarte.

Revision history for this message
Alex Ruddick (alexrudd0) wrote :

"The package manager certainly shouldn't be removing files that it doesn't own, from users home directories."

Why not, if the files are useless? They are only used for that package. Perhaps this is a job for computer-janitor?

Here is a relevant alacarte bug I filed.
https://bugs.launchpad.net/ubuntu/+source/alacarte/+bug/340285

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.