Bug 1309681 - Custom menu items ( applications ) not working properly in RHEL-7.2
Summary: Custom menu items ( applications ) not working properly in RHEL-7.2
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-shell
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Florian Müllner
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-18 13:12 UTC by jigar
Modified: 2019-10-10 11:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-17 20:25:23 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 762206 0 Normal RESOLVED apps-menu broken with alternate AppDir 2021-01-22 10:31:26 UTC

Description jigar 2016-02-18 13:12:37 UTC
Description of problem:

Has the behaviour of Appdirs changed in RHEL-7.2? Custom menu items only works if the .desktop files are placed under ~/.local/share/applications .Using <AppDir> in .menu file for specifying the desktop entries is not working properly. The item is only clickable but does not open the desired application

How reproducible: Always

Steps to Reproduce:
1) put the gnome-applications.menu file in ~/.config/menus
2) Place the custom .desktop files are placed under ~/.local/share/applications
3) it works with RHEL-7.1 but does not work with RHEL-7.2

Actual results: The menu item is just clickable and does not open the application

Expected results: The menu item should open the desired application

Comment 2 Florian Müllner 2016-03-04 14:29:42 UTC
(In reply to jigar from comment #0)
> Has the behaviour of Appdirs changed in RHEL-7.2?

Yes, it is no longer used for the "main" application view (<super>a). As the apps menu reuses the underlying code for launching applications, this does affect the extension as well.


> Custom menu items only works if the .desktop files are placed under 
> ~/.local/share/applications

More precisely:
An "applications" directory in $XDG_DATA_HOME or any directory listed in $XDG_DATA_DIRS.


> .Using <AppDir> in .menu file for specifying the desktop entries is not
> working properly. The item is only clickable but does not open the desired
> application

We can make this work again in the apps-menu extension, however those apps:

 - will not show up as search results in the overview
 - be shown in the "main" application view
 - be recognized by the system to handle URL schemes
 - be listed as options for opening files from the file manager

So in general, including the custom directory in XDG_DATA_DIRS is much preferred over using the AppDir element in the .menu file.


Note You need to log in before you can comment on or make changes to this bug.