Skip to content
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

Desktop files with NotShowIn=LXQt are still displayed in the menu #1743

Open
monetaryabyss opened this issue Sep 4, 2019 · 2 comments

Comments

@monetaryabyss
Copy link

commented Sep 4, 2019

Expected Behavior

.desktop files in /usr/share/applications/ show in the LXQt menu however adding NotShowIn=LXQt; should hide the desktop item from the menu according to the freedesktop specification, yet still allow it to be seen in other desktop environments.

Current Behavior

After adding NotShowIn=LXQt; the item is still displayed in the menu even after a logout/login, session restart, or reboot.

Steps to Reproduce (for bugs)
  1. Create a desktop file in /usr/share/applications/or modify an existing one such as this:
[Desktop Entry]
Version=1.0
Name=AlsaMixer
Type=Application
Comment=Show ALSA Audio Mixer
Terminal=true
Exec=alsamixer
Icon=multimedia-volume-control
Categories=AudioVideo;Audio;Mixer;
Keywords=Settings;Audio;
NotShowIn=LXQt;
  1. restart computer
  2. find AlsaMixer in sound and video menu
Context

Some menu items may not wish to be visible in all available desktop environments available to the system.

System Information
  • Distribution & Version: Lubuntu 19.04
  • Kernel: 5.0.0-27 generic
  • Qt Version: 5.12.2
  • liblxqt Version: 0.14.1
  • Package version: 0.14.1

Also tested on

  • Distribution & Version: Debian 10
  • Kernel: 4.19.0-5-amd64
  • Qt Version: 5.11.3
  • liblxqt Version: 0.14.1
  • Package version: 0.14.1

@agaida agaida added this to Wishlist in Issues Sep 5, 2019

@agaida

This comment has been minimized.

Copy link
Member

commented Sep 5, 2019

Right, not implemented i guess - Workaround: OnlyShowIn=None

@agaida agaida moved this from Wishlist to Low priority in Issues Sep 5, 2019

@agaida

This comment has been minimized.

Copy link
Member

commented Sep 5, 2019

@monetaryabyss - some remarks:

  • forget OnlyShowIn=None - the way a user should do this is:
cp /usr/share/applications/$foo.desktop ~/.local/share/applications
echo Hidden=true >> ~/.local/share/applications/$foo.desktop

Done

  • Never ever, i repeat, never ever edit files in /usr/share or other locations who are not configuration directories - these changes will be gone after the next update
  • read the freedesktop spezification about Hidden - NotShowIn should be deprecated, negative lists are not the right way to do these things right imho - if a Application should be shown in a certain Environment --> OnlyShowIn, if in more Environments ShowIn=foo;bar;baz - NotShowIn isn't used so often - so we forget to implement :)
  • cp and echo (or $EDITOR) is a really fine menu editor - alacarte might work too

@agaida agaida added the low-priority label Sep 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.