QuickList Editor lost Edits

Bug #993800 reported by kmh42
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
High
Ding Zhou

Bug Description

I edited some Quicklists from Rhythmbox but after a restart they don't show up any more in Ubuntu Tweak. But they still active and working. But I can't remove or edit them in Ubuntu Tweak.
I have this Problem on several PCs. All with the newest Ubuntu 12.04

Revision history for this message
kmh42 (klaus-heilinger) wrote :
Revision history for this message
Ding Zhou (tualatrix) wrote :

If you turn off rhythmbox, does the menu still there?

affects: ubuntu-tweak-website → ubuntu-tweak
Revision history for this message
kmh42 (klaus-heilinger) wrote :

The QuickLinks working fine also when RHythmbox turned off. I used them to start Rhythmbox.
PS: I have the same Problem with Libreoffice

Revision history for this message
kmh42 (klaus-heilinger) wrote :

I found an "solution" for this bug.
I encountered this bug on three different PCs and I run Unity3D on all of this. When I logout and login in Unity2D the bug is gone. So I went back to Unity3D and the QuickLinks Editor in UbuntuTweak just working fine now. I tested this on three PCs.

Revision history for this message
Ding Zhou (tualatrix) wrote :

So I guess this is a bug of Ubuntu Unity, Ubuntu Tweak reads all the configs from Unity.

Let's wait it fix in the future of Unity.

Revision history for this message
Sami Jaktholm (sjakthol) wrote :

The problem is that Ubuntu Tweak only looks into /usr/share/applications/ to find a desktop file matching the one read from settings. However things aren't that simple. Unity looks the desktop files from two different places: ~/.local/share/applications/ and /usr/share/applications/. If Unity finds a matching desktop file from the local folder, it uses it. If not, it goes to the global folder to find the desktop file.

Here's a breakdown of the problem
1. Quicklist of an application is edited for the first time
 1.1. Desktop File is copied to local directory (from /usr/share/applications/ to ~/.local/share/applications/)
 1.2. The GSettings key "com.canonical.Unity.Launcher" is changed from relative name of the desktop file to an absolute path to the local desktop file (from appname.desktop to /home/user/.local/share/applications/appname.desktop)
2. Unity Restart
 2.1. Unity changes the absolute path in the settings back to generic desktop file name because the absolute path is not needed by Unity
3. Ubuntu Tweak is started and it looks the desktop file from /usr/share/applications/ (because the path is no longer absolute)
 3.1. It finds the one which hasn't been changed as the modified version is in ~/.local/share/applications

Making Ubuntu Tweak look files from .local/share/applications/ before going to /usr/share/applications/ should fix this bug.

Revision history for this message
Ding Zhou (tualatrix) wrote :

@sampo555

Thanks. I will try to fix it in the next release.

Changed in ubuntu-tweak:
milestone: none → 0.7.3
assignee: nobody → Ding Zhou (tualatrix)
importance: Undecided → High
status: New → Confirmed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
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.