-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
menubar/utils.lua: Can't override system desktop files with NoDisplay=true #2396
Comments
This might be a duplicate of #1816 (since the instructions start with "Copy"; I have not actually checked if we handle |
It seems that you do: Lines 346 to 349 in 6617d78
But as I said, I think that in case awesome/lib/menubar/menu_gen.lua Line 80 in 68e4dd4
As far as I see, fixing this will require many changes to the structure of these functions but it is certainly possible. |
Okay, since you agree: Closing as a duplicate of #1816 |
Oh and to make things possibly clearer: You write:
Nope. The problem is that each Actually, fixing #1816 should not be that hard, I would expect. We would just need to generate the desktop file IDs and track them, so that if the same ID appears again later, the later one can be ignored.... |
Agree. We need to consider the location of the desktop files and if a desktop id appears twice, we need to use the one that is used in |
Output of
awesome --version
:How to reproduce the issue:
Based on https://wiki.archlinux.org/index.php/Desktop_entries#Hide_desktop_entries:
/usr/share/applications/
(firefox.desktop
for example) to~/.local/share/applications
.NoDisplay=true
under[Desktop Entry]
to your copy of the desktop file in~/.local/share/applications
.update-desktop-database ~/.local/share/applications
in order to update the desktop entries of the system along with the user installed ones.Actual result:
The firefox program is still visible when running
menubar.show()
.Expected result:
The firefox program is not visible when running
menubar.show()
.My suspicion:
I've read the source code of the
menubar
module and I think the problem is that although theNoDisplay
entry is read and checked against"true"
, perhaps it is still being merged with the system's original desktop entry which doesn't haveNoDisplay=true
in it's[Desktop Entry]
.The text was updated successfully, but these errors were encountered: