Comment 3 for bug 913966

Revision history for this message
Michael Vogt (mvo) wrote : Re: "Find it in the menu" is wrong with gnome-shell in use

A better fix is of course to simply prepend "Activities" here, but that would require a new string :/

Something like:
=== modified file 'softwarecenter/ui/gtk3/views/appdetailsview.py'
--- softwarecenter/ui/gtk3/views/appdetailsview.py 2012-04-17 14:50:00 +0000
+++ softwarecenter/ui/gtk3/views/appdetailsview.py 2012-04-17 15:28:00 +0000
@@ -1612,6 +1612,11 @@
         # display launcher location
         label = Gtk.Label(label=_("Find it in the menu: "))
         self.installed_where_hbox.pack_start(label, False, False, 0)
+ if is_gnome_shell_running():
+ class ActivitiesPseudoItem(object):
+ def get_icon(self): return ""
+ def get_name(self): return _("Activities")
+ where.insert(0, ActivitiesPseudoItem())
         for (i, item) in enumerate(where):
             icon = None
             iconname = None
@@ -1673,9 +1678,9 @@
         self.installed_where_hbox.set_property("can-focus", False)
         self.installed_where_hbox.a11y.set_name('')

- # exit here early if unity or gnome-shell are running (but still
+ # exit here early if unity is running (but still
         # show commandline args)
- if is_unity_running() or is_gnome_shell_running():
+ if is_unity_running():
             # but still display available commands, even in unity
             # because these are not easily discoverable and we don't
             # offer a launcher