Merge lp:~didrocks/unity/fix-duplicate-entry into lp:unity

Proposed by Didier Roche-Tolomelli
Status: Merged
Merged at revision: 559
Proposed branch: lp:~didrocks/unity/fix-duplicate-entry
Merge into: lp:unity
Diff against target: 14 lines (+3/-1)
1 file modified
tools/migrate_favorites.py (+3/-1)
To merge this branch: bzr merge lp:~didrocks/unity/fix-duplicate-entry
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen (community) Approve
Review via email: mp+36707@code.launchpad.net

Description of the change

Don't migrate ubiquity from dekstop, will result in duplicate entry in the live session

To post a comment you must log in.
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Approved!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tools/migrate_favorites.py'
--- tools/migrate_favorites.py 2010-09-21 14:43:37 +0000
+++ tools/migrate_favorites.py 2010-09-27 13:12:47 +0000
@@ -88,7 +88,9 @@
88# get GNOME desktop launchers88# get GNOME desktop launchers
89desktop_dir = get_desktop_dir()89desktop_dir = get_desktop_dir()
90for launcher_location in glob.glob('%s/*.desktop' % desktop_dir):90for launcher_location in glob.glob('%s/*.desktop' % desktop_dir):
91 (apps_list, priority_position) = register_new_app(client, launcher_location, apps_list, priority_position)91 # blacklist ubiquity as will have two ubiquity in the netbook live session then
92 if not "ubiquity" in launcher_location:
93 (apps_list, priority_position) = register_new_app(client, launcher_location, apps_list, priority_position)
9294
93# set list of default and new favorites and write everything!95# set list of default and new favorites and write everything!
94client.set_list('/desktop/unity/launcher/favorites/favorites_list', gconf.VALUE_STRING, apps_list)96client.set_list('/desktop/unity/launcher/favorites/favorites_list', gconf.VALUE_STRING, apps_list)