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 693241 - apps-menu: Two Accessories categories
apps-menu: Two Accessories categories
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jeremy Bicha
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-06 04:38 UTC by Jeremy Bicha
Modified: 2013-03-04 22:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
two-accessories-menu.png (36.25 KB, image/png)
2013-02-06 04:38 UTC, Jeremy Bicha
  Details
wine-notepad.desktop (1.05 KB, text/plain)
2013-02-07 20:36 UTC, Jeremy Bicha
  Details
/usr/share/desktop-directories/wine-Programs-Accessories.directory (344 bytes, text/plain)
2013-02-07 20:51 UTC, Jeremy Bicha
  Details
apps-menu: don't load subdirectories as separate categories (3.12 KB, patch)
2013-02-10 16:29 UTC, Giovanni Campagna
committed Details | Review

Description Jeremy Bicha 2013-02-06 04:38:07 UTC
Created attachment 235287 [details]
two-accessories-menu.png

gnome-shell 3.7.5 with gnome-shell-extensions 3.7.5 (jhbuild) on Ubuntu 13.04 Alpha

The apps menu in GNOME Classic is showing two Accessories categories (screenshot attached). The second one is because I have wine installed. Wine includes wine-notepad.desktop which contains the line Categories=Wine-Programs-Accessories;

It looks like the GNOME Shell Activities Overview shows this .desktop in the Wine category. The apps menu extension should do the same.
Comment 1 Jeremy Bicha 2013-02-06 05:17:42 UTC
A similar problem is that the apps menu also shows Logic as a separate category. The Activities Overview just includes those apps (Mines, Sudoku, etc.) in the Games category.
Comment 2 Debarshi Ray 2013-02-07 15:11:38 UTC
Could you please attach the desktop file in question? I could not reproduce it with something like:

[Desktop Entry]
Name=Foo App
Comment=Do Bar and Baz
Exec=/usr/bin/false
Icon=java
Terminal=false
Type=Application
Categories=Wine-Programs-Accessories;
Comment 3 Jeremy Bicha 2013-02-07 20:36:32 UTC
Created attachment 235446 [details]
wine-notepad.desktop
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-02-07 20:44:27 UTC
Make sure you include the wine-generated directory from ~/.local/share/desktop-directories as well.
Comment 5 Jeremy Bicha 2013-02-07 20:51:35 UTC
Created attachment 235447 [details]
/usr/share/desktop-directories/wine-Programs-Accessories.directory
Comment 7 Giovanni Campagna 2013-02-10 16:29:35 UTC
Created attachment 235626 [details] [review]
apps-menu: don't load subdirectories as separate categories

Directories that are not immediate children of the root should be merged
in the parent, to preserve the flat structure and to be consistent with
the Activities overview.
Comment 8 Matthias Clasen 2013-03-02 00:55:35 UTC
Should we get this merged ?
Comment 9 Giovanni Campagna 2013-03-02 01:04:40 UTC
Needs a review, I think
(If nothing happens I'll push it before .91, and then see if anything breaks)
Comment 10 Giovanni Campagna 2013-03-04 22:36:10 UTC
Attachment 235626 [details] pushed as c70b152 - apps-menu: don't load subdirectories as separate categories