[cinnamon/f18] mozilla desktop fix

leigh123linux leigh123linux at fedoraproject.org
Fri Oct 12 09:27:22 UTC 2012


commit db915f8f33b0a2f48e856bea2f5110de96fbf7e2
Author: leigh123linux <leigh123linux at googlemail.com>
Date:   Fri Oct 12 10:24:41 2012 +0100

    mozilla desktop fix

 cinnamon-1.6.0_favourite-apps-firefox.patch |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/cinnamon-1.6.0_favourite-apps-firefox.patch b/cinnamon-1.6.0_favourite-apps-firefox.patch
index 52e1526..cf4a3ed 100644
--- a/cinnamon-1.6.0_favourite-apps-firefox.patch
+++ b/cinnamon-1.6.0_favourite-apps-firefox.patch
@@ -18,3 +18,18 @@
        <_summary>List of desktop file IDs for favorite applications</_summary>
        <_description>
          The applications corresponding to these identifiers
+--- a/js/ui/appFavorites.js
++++ b/js/ui/appFavorites.js
+@@ -24,6 +24,12 @@ AppFavorites.prototype = {
+ 
+     _reload: function() {
+         let ids = global.settings.get_strv(this.FAVORITE_APPS_KEY);
++        // Fedora: Replace old mozilla-firefox.desktop with firefox.desktop,
++        for (let i = 0; i < ids.length; i++) {
++            if (ids[i] == 'mozilla-firefox.desktop')
++                ids[i] = 'firefox.desktop'
++        }
++
+         let appSys = Cinnamon.AppSystem.get_default();
+         let apps = ids.map(function (id) {
+                 let app = appSys.lookup_app(id);


More information about the scm-commits mailing list