You are not logged in.

#1 2020-07-18 13:52:38

Tjuh
Member
Registered: 2013-11-14
Posts: 18

Remove Logout/Help/About from XFCE4-panel?

More of an autism thingy than a real issue, but is it possible to remove those options from the right-click panel submenu?

Offline

#2 2020-07-18 19:02:46

TheSgtBilko
Member
Registered: 2013-08-13
Posts: 89

Re: Remove Logout/Help/About from XFCE4-panel?

Some info here:
https://wiki.xfce.org/howto/customize-menu

add:
I'd probably go for the option of copying the default menu to my local user and change in panel settings to use the local modified menu. All to keep installed files as they are.

Last edited by TheSgtBilko (2020-07-18 19:06:58)

Offline

#3 2020-07-18 20:05:25

Tjuh
Member
Registered: 2013-11-14
Posts: 18

Re: Remove Logout/Help/About from XFCE4-panel?

That works for the application menu, but not for the panel menu. Dunno, maybe it's hard coded.

Offline

#4 2020-07-19 10:24:10

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Remove Logout/Help/About from XFCE4-panel?

Shouldn't it work when you edit the according .desktop files?
https://wiki.xfce.org/howto/customize-m … nu_entries

Offline

#5 2020-07-20 17:39:47

jazztickets
Member
Registered: 2013-11-20
Posts: 15

Re: Remove Logout/Help/About from XFCE4-panel?

It's hardcoded. Check out panel-window.c around line 3000 from the xfce4-panel source code. You'd have to modify the code and rebuild the package to remove it.

Offline

#6 2020-07-20 18:48:44

TheSgtBilko
Member
Registered: 2013-08-13
Posts: 89

Re: Remove Logout/Help/About from XFCE4-panel?

I just tested following: https://wiki.xfce.org/howto/customize-m … _menu_file

Create "menus" folder under your users ".config" folder
Copy /etc/xdg/menus/xfce-applications.menu to the newly created menus folder.
In the copied file, remove the lines in first "Layout" section for: xfce4-about.desktop and xfce4-session-logout.desktop

Seems to work fine!

To temporarily revert, rename the new file.
To permanently revert, remove the new file.

Offline

#7 2020-07-20 22:17:35

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Remove Logout/Help/About from XFCE4-panel?

jazztickets wrote:

It's hardcoded. Check out panel-window.c around line 3000 from the xfce4-panel source code. You'd have to modify the code and rebuild the package to remove it.

AFAIU (the link I posted earlier) it can be masked by dropping edited (NoDisplay=true) .desktop files in ~/.local/share/applications.

Last edited by ondoho (2020-07-20 22:17:46)

Offline

#8 2020-07-20 23:06:20

jazztickets
Member
Registered: 2013-11-20
Posts: 15

Re: Remove Logout/Help/About from XFCE4-panel?

Maybe i'm wrong, but isn't OP referring to right-clicking the xfce4-panel, then under the Panel submenu:
DGmLH9D.png

OP, you need to post a screenshot of what you're talking about.

Offline

#9 2020-07-20 23:48:59

Tjuh
Member
Registered: 2013-11-14
Posts: 18

Re: Remove Logout/Help/About from XFCE4-panel?

Yes, that's exactly what I'm talking about.

Offline

#10 2020-07-21 10:14:49

TheSgtBilko
Member
Registered: 2013-08-13
Posts: 89

Re: Remove Logout/Help/About from XFCE4-panel?

Oh ok I misunderstood!
Well maybe the previous info is valid in a different use case smile

Offline

Board footer

Powered by FluxBB