MX menu editor Hide option not working

Post Reply
Message
Author
User avatar
makis_best
Posts: 3
Joined: Mon Apr 08, 2019 12:42 pm

MX menu editor Hide option not working

#1 Post by makis_best »

Hi.

I want to hide some applications using the MX menu editor.
So I find the application I want I press the hide option ---> Save and BOOM... Noting happen.
The application keep show in MX Menu even after I restart the computer.

I do something wrong?

The hide option inside menu editor is nor use for that?

Thank you

User avatar
Adrian
Developer
Posts: 8269
Joined: Wed Jul 12, 2006 1:42 am

Re: MX menu editor Hide option not working

#2 Post by Adrian »

It works for me for at least for some apps. Which app do you try to hide?

User avatar
makis_best
Posts: 3
Joined: Mon Apr 08, 2019 12:42 pm

Re: MX menu editor Hide option not working

#3 Post by makis_best »

I try to hide Vivaldi browser

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX menu editor Hide option not working

#4 Post by fehlix »

makis_best wrote: Tue Apr 09, 2019 2:04 pm I try to hide Vivaldi browser
That's a bug in MX Menu Editor. The Hide Otion does create one "NoDisplay=true" marker,
but this marker is only effective for tha last "Exec" statement with that Menu-Icon starter.
For menu icon starter with multiple Exec-lines like vivaldi it does not hide the menuenty.

To correct this manually here a quick fix for vivaldi:
Run within terminal this one liner after you clicked Hide with the menu Editor:

Code: Select all

perl -pi  -e '/^Exec=/ && print qq/NoDisplay=true\n/;'  ~/.local/share/applications/vivaldi-stable.desktop
This will add to all Exec lines within the starter file a NoDisplay marker,
and by this the menu entry will not shown in the menu.
HTH
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
Adrian
Developer
Posts: 8269
Joined: Wed Jul 12, 2006 1:42 am

Re: MX menu editor Hide option not working

#5 Post by Adrian »

So we need a NoDisplay=true after each Exec= line... that's so stupid... grrrr.

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX menu editor Hide option not working

#6 Post by fehlix »

Adrian wrote: Tue Apr 09, 2019 4:05 pm So we need a NoDisplay=true after each Exec= line... that's so stupid... grrrr.
... I would formulate it bit nicer, like it's a freedesktop spec :footinmouth:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

skidoo
Posts: 753
Joined: Tue Sep 22, 2015 6:56 pm

Re: MX menu editor Hide option not working

#7 Post by skidoo »

So we need a NoDisplay=true after each Exec= line
indeed, it is a stupid fREEDESKTOPoRG spec.
To be safe, I might also add:

X-NoJalapeños=true
X-NoAnchovies=true
X-NoClientSideDecorationsHeaderbarThingie=true

User avatar
makis_best
Posts: 3
Joined: Mon Apr 08, 2019 12:42 pm

Re: MX menu editor Hide option not working

#8 Post by makis_best »

fehlix wrote: Tue Apr 09, 2019 3:12 pm
makis_best wrote: Tue Apr 09, 2019 2:04 pm I try to hide Vivaldi browser
That's a bug in MX Menu Editor. The Hide Otion does create one "NoDisplay=true" marker,
but this marker is only effective for tha last "Exec" statement with that Menu-Icon starter.
For menu icon starter with multiple Exec-lines like vivaldi it does not hide the menuenty.

To correct this manually here a quick fix for vivaldi:
Run within terminal this one liner after you clicked Hide with the menu Editor:

Code: Select all

perl -pi  -e '/^Exec=/ && print qq/NoDisplay=true\n/;'  ~/.local/share/applications/vivaldi-stable.desktop
This will add to all Exec lines within the starter file a NoDisplay marker,
and by this the menu entry will not shown in the menu.
HTH
:puppy:
I can use the same command and for other applications just by changing the application name I imagine. Correct?

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: MX menu editor Hide option not working

#9 Post by fehlix »

makis_best wrote: Wed Apr 10, 2019 7:52 am I can use the same command and for other applications just by changing the application name I imagine. Correct?
Yes, if you adjust the filename of the .desktop -starter file found within ~/.local/share/applications .
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

Post Reply

Return to “XFCE Desktop Environment”