After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729447 - double entry in notifications settings
double entry in notifications settings
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Notifications
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
: 732797 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-05-03 08:28 UTC by Andreas Nilsson
Modified: 2014-07-06 14:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (164.97 KB, image/png)
2014-05-03 08:29 UTC, Andreas Nilsson
Details

Description Andreas Nilsson 2014-05-03 08:28:34 UTC
I see this at least under Fedora Rawhide.
Comment 1 Andreas Nilsson 2014-05-03 08:29:41 UTC
Created attachment 275739 [details]
screenshot
Comment 2 Matthias Clasen 2014-05-03 15:53:24 UTC
What does

gsettings get org.gnome.desktop.notifications application-children

say ?
Comment 3 Andreas Nilsson 2014-05-05 15:33:35 UTC
['abrt-applet', 'evolution', 'org-gnome-software', 'gnome-music', 'transmission-gtk', 'birdie', 'gnome-network-panel', 'vlc']
Comment 4 Andreas Nilsson 2014-05-05 15:36:50 UTC
On my Fedora 20 + GNOME 3.12 Copr I get even more doubles.
Twins for Polari, Software and ABRT.
Comment 5 Andreas Nilsson 2014-05-05 15:37:34 UTC
there gsettings...applications children gives me:
['org-gnome-software', 'mozilla-thunderbird', 'empathy', 'transmission-gtk', 'gnome-abrt', 'sparkleshare', 'org-gnome-polari', 'gnome-music', 'gnome-network-panel', 'tomboy', 'evolution', 'abrt-applet']
Comment 6 Kalev Lember 2014-06-05 22:27:36 UTC
Looks like "org-gnome-software" vs "org-gnome-Software".
Comment 7 Kalev Lember 2014-06-05 22:43:53 UTC
Reassigning to gnome-control-center. This seems to be a bug with the notifications panel that considers "org-gnome-software" and "org-gnome-Software" as different identifiers.

gnome-shell runs the desktop file ID-s through the following function before saving them in application-children:

    _canonicalizeId: function(id) {
        // Keys are restricted to lowercase alphanumeric characters and dash,
        // and two dashes cannot be in succession
        return id.toLowerCase().replace(/[^a-z0-9\-]/g, '-').replace(/--+/g, '-');
    },
Comment 8 Bastien Nocera 2014-07-01 14:26:45 UTC
commit ea66f828eb8207fb8741decd68bb9851e73d55d2
Author: Bastien Nocera <hadess@hadess.net>
Date:   Tue Jul 1 16:23:55 2014 +0200

    notifications: Fix duplicates in application list
    
    When saving applications in the "application-children" list, gnome-shell
    will lower-case the whole canonical application ID in _canonicalizeId().
    
    Match _canonicalizeId()'s behaviour, and lower-case the canonical
    application ID so we don't try to load "org-gnome-Software" from
    GNOME-Software's desktop file in addition to the already saved
    "org-gnome-software".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729447

commit 45183a89b5caf2d593abc8a731a05b9fec7f5fc3
Author: Bastien Nocera <hadess@hadess.net>
Date:   Tue Jul 1 16:23:11 2014 +0200

    notifications: Add better debug for saved apps
    
    So we can see the apps for which there already are saved settings.
Comment 9 Bastien Nocera 2014-07-06 14:31:31 UTC
*** Bug 732797 has been marked as a duplicate of this bug. ***