Merge lp:~gary-lasker/software-center/fix-lp913756 into lp:software-center

Proposed by Gary Lasker
Status: Merged
Merged at revision: 2648
Proposed branch: lp:~gary-lasker/software-center/fix-lp913756
Merge into: lp:software-center
Diff against target: 46 lines (+12/-5)
2 files modified
debian/changelog (+7/-1)
softwarecenter/ui/gtk3/panes/availablepane.py (+5/-4)
To merge this branch: bzr merge lp:~gary-lasker/software-center/fix-lp913756
Reviewer Review Type Date Requested Status
software-store-developers Pending
Review via email: mp+88118@code.launchpad.net

Description of the change

This branch fixes bug 913756, where an icon is added to the Unity launcher for the ubuntu-restricted-extras package. The change just reverts to again check for an Exec line in the corresponding desktop file (we did this previously). If there is no Exec line, then the add to Unity launcher is skipped for that package. This seems the correct behavior.

Thanks!

To post a comment you must log in.
2649. By Gary Lasker

* lp:~gary-lasker/software-center/fix-lp913756:
  - do not add an icon to the Unity launcher for packages that do
    not have an Exec entry in their corresponding desktop file,
    e.g. ubuntu-restricted-extras, wine (LP: #913756)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2012-01-09 17:39:59 +0000
+++ debian/changelog 2012-01-10 21:03:24 +0000
@@ -9,7 +9,13 @@
9 * utils/submit_review_gtk3.py:9 * utils/submit_review_gtk3.py:
10 - fix crash when submitting a review (LP: #912855)10 - fix crash when submitting a review (LP: #912855)
1111
12 -- Gary Lasker <gary.lasker@canonical.com> Mon, 09 Jan 2012 12:34:12 -050012 [ Gary Lasker ]
13 * lp:~gary-lasker/software-center/fix-lp913756:
14 - do not add an icon to the Unity launcher for packages that do
15 not have an Exec entry in their corresponding desktop file,
16 e.g. ubuntu-restricted-extras, wine (LP: #913756)
17
18 -- Gary Lasker <gary.lasker@canonical.com> Tue, 10 Jan 2012 15:56:44 -0500
1319
14software-center (5.1.5.1) precise; urgency=low20software-center (5.1.5.1) precise; urgency=low
1521
1622
=== modified file 'softwarecenter/ui/gtk3/panes/availablepane.py'
--- softwarecenter/ui/gtk3/panes/availablepane.py 2012-01-09 21:34:32 +0000
+++ softwarecenter/ui/gtk3/panes/availablepane.py 2012-01-10 21:03:24 +0000
@@ -36,7 +36,7 @@
36 TransactionTypes)36 TransactionTypes)
37from softwarecenter.paths import APP_INSTALL_PATH37from softwarecenter.paths import APP_INSTALL_PATH
38from softwarecenter.utils import (wait_for_apt_cache_ready,38from softwarecenter.utils import (wait_for_apt_cache_ready,
39 is_no_display_desktop_file,39 get_exec_line_from_desktop,
40 convert_desktop_file_to_installed_location,40 convert_desktop_file_to_installed_location,
41 get_file_path_from_iconname)41 get_file_path_from_iconname)
42from softwarecenter.db.appfilter import AppFilter42from softwarecenter.db.appfilter import AppFilter
@@ -373,10 +373,11 @@
373 # we only add items to the launcher that have a desktop file373 # we only add items to the launcher that have a desktop file
374 if not appdetails.desktop_file:374 if not appdetails.desktop_file:
375 return375 return
376 # do not add apps that have NoDisplay=true in their desktop file376 # do not add apps that have no Exec entry in their desktop file
377 # (e.g. wine, see #848437)377 # (e.g. wine, see LP: #848437 or ubuntu-restricted-extras,
378 # see LP: #913756)
378 if (os.path.exists(appdetails.desktop_file) and379 if (os.path.exists(appdetails.desktop_file) and
379 is_no_display_desktop_file(appdetails.desktop_file)):380 not get_exec_line_from_desktop(appdetails.desktop_file)):
380 return381 return
381382
382 (icon_size, icon_x, icon_y) = self._get_onscreen_icon_details_for_launcher_service(app)383 (icon_size, icon_x, icon_y) = self._get_onscreen_icon_details_for_launcher_service(app)

Subscribers

People subscribed via source and target branches