Page 1 of 1

[RESOLVED] XFCE Menu Frustrations

Posted: Wed Apr 17, 2019 11:06 pm
by dcbdbis
Good Evening All,

I have been using Mate, but am giving XFCE a try.
I am absolutely frustrated with XFCE's wonky and cumbersome menu entries. Under Mate - it was so much easier.

The menu changes I make with the default editor, or menulibre, or alacarte don't stick. In fact they are invisible. Any changes I make, and the MX Tools menu disappears.

So now I have two problems:
a) How to reset the xfce menu to the MX Linux defaults to get the MX Linux customizations back.
and
b) And how to edit the menus and add categories and add custom apps to those new categories.

Manually modifying the .desktop files is unacceptable. I am about to deploy MX Linux on a client company replacing Windows. They need a GUI menu editor that works.

Help would be greatly appreciated. Again - I am a long-standing Mate user....So if there is some tool I am missing, please banish my ignorance.

Sincerely and respectfully,


Dave

Re: XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 12:10 am
by figueroa
dcbdbis wrote: Wed Apr 17, 2019 11:06 pm So now I have two problems:
a) How to reset the xfce menu to the MX Linux defaults to get the MX Linux customizations back.
and
b) And how to edit the menus and add categories and add custom apps to those new categories.
I'm not an MX developer, so with that caveat:
a) The user defaults are in /etc/skel (ls -a /etc/skel/) so I believe you could selectively copy from there to /home/user/.config/xfce4 to get your defaults back. There are also a few .desktop files in .local/share/applications/ if any of those have been removed or changed.
b) I find the menu editor works.

What I do when deploying xfce4 to many users where I want a standard configuration is create the desktop that I want for a single user (usually a dummy user), then copy the whole ~.config/xfce4 directory to the new user.

xfce really depends on those .desktop files.

If you have messed up the files in /etc/ or /usr/share you may just need to reinstall. If it's only the user that is messed up, just create a new user to have a new user with the MX defaults.

Are you setting up from an up-to-date MX-18? What is it about the default menu that is not suitable for your proposed use?

My observation is that you are may not be sufficiently prepared yet to inflict this on a client company. If you are a Mate user and familiar with Mate, and not familiar with XFCE, maybe deplooying MX with XFCE to a client company isn't a good idea.

Re: XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 12:21 am
by JayM
dcbdbis wrote: Wed Apr 17, 2019 11:06 pm Good Evening All,

I have been using Mate, but am giving XFCE a try.
I am absolutely frustrated with XFCE's wonky and cumbersome menu entries. Under Mate - it was so much easier.
You're just more used to MATE is all. I'll bet that if I tried to do what you're doing in MATE I'd experience the same frustration and be muttering about MATE's menu, because it isn't the same as Xfce's which I'm used to.
The menu changes I make with the default editor, or menulibre, or alacarte don't stick. In fact they are invisible. Any changes I make, and the MX Tools menu disappears.
What are you trying to change?
So now I have two problems:
a) How to reset the xfce menu to the MX Linux defaults to get the MX Linux customizations back.
and
b) And how to edit the menus and add categories and add custom apps to those new categories.
Assuming this is a fresh installation and you haven't done a lot of panel customizations yet, right-click on the desktop, choose Applications/MX Tools/MX Tweak, select "Restore default panel" then click Apply. This will reset the panel including the Whisker menu. Or replace the Whisker menu with the stock Xfce menu (see below.) Or look at posts by user "manyroads" who recently messed up his own Whisker menu and was able to resolve it. (Edit - here it is: viewtopic.php?f=97&t=49410&p=493969#p493969)
Manually modifying the .desktop files is unacceptable. I am about to deploy MX Linux on a client company replacing Windows. They need a GUI menu editor that works.

Help would be greatly appreciated. Again - I am a long-standing Mate user....So if there is some tool I am missing, please banish my ignorance.

Sincerely and respectfully,


Dave
Why do you want end-users who are brand-new to Linux to edit their own menus? If you're the one deploying these computers in a business environment it sounds like you'll also be the one supporting them, and letting the users do what you're trying to do sounds like opening a huge can of worms. It may be better to set up one computer the way it needs to be, create a snapshot of it, burn the resulting ISO and deploy that instead of the original MX one. Once the default user has been set up on the first computer you can copy all of the hidden files and directories to /etc/skel (as su or sudo) so they'll be used whenever a new user is created.

If all you're trying to do is add menu entries for custom apps you've installed, right-click on the MX logo, click Edit Applications, then click Add Custom Application.

If you wish, you can right-click on the panel, choose Panel/Add New Items and choose Applications Menu and take a look at the Xfce standard menu. If it's easier to edit than Whisker Menu you can remove Whisker and move Application Menu to Whisker's old location. If you want to assign the regular MX Logo image to it, it's located in /usr/local/share/icons.

Edit 2: Figugeroa raised a good point: if you have a deadline to get this business up and running on Linux you'd probably be better off using the distro that you're personally the most familiar with. If there's no hard and fast deadline you might want to consider delaying deployment for several weeks to give yourself time to become familiar with MX first. Otherwise, brand-new (to you) distro + an upcoming deadline on which everything absolutely must work = lots of panic and frustration on your part and a negative impression of Linux on the part of that business. I came to MX from a distro that used Cinnamon which I had used for almost a year and before that I'd been using primarily KDE distros. My personal MX/Xfce learning curve was around 2 months. YMMV.

Re: skidoo's post below, Alt+F1 will bring up the MX user manual. There's also a link to the MX wiki on the MX website which is another valuable source of information. Searching this forum for previous on-topic posts is another one, especially posts that have been marked [SOLVED} in their subject lines.

Re: XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 1:29 am
by skidoo
MX User Manual
Section 3.2.9 Menu Editor

It's a tool designed for end users.
Hearing "changes don't stick", sounds like the sysadmin hasn't yet copied the customized entries from ~/... into the /usr/share (and/or /tec/skel)

Image

Re: XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 1:55 am
by dcbdbis
So I reset the menus by using the MX Tweak tool and restoring the panel. The default MX menu came back. All of it.

For the record: MX 18.2 fresh install. x86_64. Default kernel. I haven't put my custom kernel under the hood yet until I iron out my issues with XFCE. So it's a default install where all I am truing to do is modify the menu.

This is the error I get with alacarte:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 450, in on_properties_button_clicked
    self.on_edit_properties_activate(None)
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 317, in on_edit_properties_activate
    file_path = os.path.join(util.getUserDirectoryPath(), os.path.split(item.get_desktop_file_path())[1])
  File "/usr/lib/python2.7/posixpath.py", line 85, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
Traceback (most recent call last):
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 72, in menuChanged
    self.loadUpdates()
  File "/usr/share/alacarte/Alacarte/MainWindow.py", line 87, in loadUpdates
    item_id = os.path.split(items[iter][3].get_desktop_file_path())[1]
  File "/usr/lib/python2.7/posixpath.py", line 85, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'
But what @skidoo stated is raising a suspicion that I may not be using the correct technique. menulibre's changes show up in the "other" category - even when I select an existing default XFCE entry such as "Utility". The MX Menu editor offers me no choice to create a new category. alacarte creates the custom directory, but the actual application is missing. So I'm fairly perplexed...

Do you mean that I need to take the custom application's desktop entry in the user's home dir - and propagate them to the /usr dir? (in the proper location of course)

If so, I have NOT been doing that. I ASSumed that the menu was smart enough to use the system's default menus, then add user tweaks stored in the user's dir....

And then if that is so - how do I create custom categories Such as "Electrical Estimating Packages"?

Thank you all for your replies...But now I need to go to bed - I just had surgery at the VA yesterday and need to rest. I'll check back in the morning.

Sincerely and respectfully,

Dave

Re: XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 2:07 am
by JayM
I just installed alacarte from the MX Stable repo and was able to create a New Menu (category) which I named Test and add a New Item (Nomacs) to it, and they appeared in my Whisker menu right away. I suggest uninstalling menulibre and just using alacarte (which appears in Whisker as Settings/Main Menu.)

In Main Menu (alacarte) there are a left and right pane, with various buttons to the right of those. In the left pane click Xfce, then click New Menu to create a new category. It will then also appear in the right pane. Click on it and move it to wherever you want it in the menu. If you want to change its icon, click on it in the right pane to select it then click the Properties button, click on the default icon, click Other Locations/Computer and browse to /usr/share/icons, select an icon theme (ePapirus has a lot), then select a size (32x32 seems to be the most complete), select categories, and browse for one you want to use. Or if you have custom icons already, browse to their location and select the one you want.

To add apps within that category, click on the category in the left pane and click New Item. Give it a title, browse to the location of the executable file, select it, and change its icon if you wish just like you did for the category.

Categories won't be displayed until they contain one or more items. You may have to experiment with alacarte a bit to find out what works and what doesn't: I've only messed with it for a few minutes just now so I'm no expert. But once you have the menu set up on one machine you can then clone it to the others, either by copying/pasting ~.config/xfce4 or creating a snapshot of the set-up machine and using it to install MX to the others. Or once you've figured out exactly how to make alacarte work you can create a cheat sheet for your client, if they absolutely must edit their own menus individually.

Re: XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 12:37 pm
by dcbdbis
I want to thank everyone for their responses. I do appreciate it.

It has been my experience over the years that XFCE is fine - as long as you don't start to tweak things like colors in themes - or the menus. Same experience again this time. I can duplicate my issues with XFCE in VirtualBox, both with MX Linux and Manjaro.

I do not have the issue in KDE, Cinnamon, LXDE/LXQT. So my goto desktop remains Mate. I flush XFCE and purged all of it, including the hidden files in my user dir that referred to it.

When I have to wrestle with a DE and it fights me, then it's time to move on.

Mate gives me control of my menus, and my colors. XFCE does not, and hasn't for over ten years.

If you leave XFCE alone, then it works very well. If you try to tweak it - it has issues.

It has been my experience for over a decade that XFCE needs a different menu editor paradigm, (like Mate - or Cinnamon or KDE), and a better mechanism for theme color tweaking than manually tweaking the same, or manually creating .gtkrc files.

Thank you again for all the assistance, but I have moved back to my standard DE, Mate.


Sincerely and respectfully,

Dave

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 3:36 pm
by Stevo
I use gnome-color-chooser to tweak colors and other elements of themes in XFCE. It should also work in Mate.

Are you going to do a respin of MX in Mate, or use one of the existing ones?

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 4:07 pm
by dreamer
Stevo wrote: Thu Apr 18, 2019 3:36 pm I use gnome-color-chooser to tweak colors and other elements of themes in XFCE. It should also work in Mate.
gnome-color-chooser modifies gtk2 themes so it might work in Xfce 4.12, but it won't work in MATE which is fully gtk3.

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 6:14 pm
by Stevo
dreamer wrote: Thu Apr 18, 2019 4:07 pm
Stevo wrote: Thu Apr 18, 2019 3:36 pm I use gnome-color-chooser to tweak colors and other elements of themes in XFCE. It should also work in Mate.
gnome-color-chooser modifies gtk2 themes so it might work in Xfce 4.12, but it won't work in MATE which is fully gtk3.
I assumed that since if it works with GTK 3 GNOME 3, it would work with other GTK 3 desktops...unless it's just left over from GNOME 2.

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Thu Apr 18, 2019 6:32 pm
by dreamer
Stevo wrote: Thu Apr 18, 2019 6:14 pm I assumed that since if it works with GTK 3 GNOME 3, it would work with other GTK 3 desktops...unless it's just left over from GNOME 2.
It's from the glory days of Gnome 2. Last updated in 2009.

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Mon Jan 20, 2020 10:22 am
by remoteone
So how exactly does one remove a category from the MX menu?
For example "Games" . Cant do it in MX Menu Editor.

EDIT: Just worked it out, need to hide each app listed under "Games"rather than delete the Games Category.

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Mon Jan 20, 2020 10:31 am
by glitchdot
1.If you uninstall all games, it will be automatically removed.
2.With MX menu editor you can remove it, with removing Game Category of each application in Games.
3.The other way is to remove all games .desktop files from ~/.local/share/applications/

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Sun Feb 02, 2020 7:15 am
by elementaryOX
:confused: I managed it!!
Also !!!??? Jerry3904 wrote a little help in wiki about Xfce menus on May, 2018. It was great help - but there is a BUG :-)
Create the ~/.local/share/desktop-directories/Multimedia-Editors.desktop file:

[Desktop Entry]
Type=Directory
Name=Multimedia-Editors
Icon=applications-internet
Create the ~/.local/share/desktop-directories/Multimedia-Editors.directory should it be, don't it.?

I tried there to leave a comment. But got the error:
Access Denied - https://mxlinux.org/wp-comments-post.php

So I leave it here for Jerry.
After two days of trying: It is simple, if you have the right information about the used files.

Good Luck :-)

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Sun Feb 02, 2020 7:36 am
by elementaryOX
A little more information:
I have installed lots of Programs for Audio/Music)Studio and some for Video. So the submenu Multimedia got too full. So decided to have two more Submenus. One for Audiostudio and one more for Video. This decision took me much time of searching the incorporated files.
Finally two links helped: https://wiki.xfce.org/howto:customize-menu and https://mxlinux.org/wiki/xfce/xfce-menus/ (with the puzzling BUG of .desktop versus .directory file)
AND YEAHH Kernel

Code: Select all

 5.4.0-13.3-liquorix-amd64 x86_64 is running!
CPU:       Topology: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 
           family: 17 (23) model-id: 71 (113) stepping: N/A microcode: 8701011 
           L2 cache: 4096 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
           bogomips: 114983 
           Speed: 4118 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 4118 
           2: 3811 3: 3573 4: 4103 5: 3383 6: 3582 7: 3688 8: 4112 9: 3980 10: 4064 11: 3518 
           12: 3479 13: 3634 14: 4106 15: 4094 16: 3893 
Graphics:  Device-1: AMD Ellesmere [Radeon RX 470/480] vendor: Sapphire Limited driver: amdgpu 
           v: kernel bus ID: 09:00.0 chip ID: 1002:67df 
           Display: x11 server: X.Org 1.20.4 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa 
           resolution: 1920x1080~60Hz 

Thanks guys!

Only QJackCtl is a fastidious princess!! Thats not your fault.

Re: [RESOLVED] XFCE Menu Frustrations

Posted: Sun Feb 02, 2020 4:46 pm
by nathan2423
I have been thinking about this thread all day because it mirrors my own frustrations with the XFCE menuing system. I do like the "look" of the whisker menu, and I consider it to be the main reason I have not already switched to LXQT, or dropped back to the simpler systems such as used in Antix.

But I cannot justify asking my users to accept the inability to tweak the menu without such gymnastics. My personal menu has been plagued with redundant entries for years and I have just ignored it. I long ago gave up playing with alacarte and the menu editor and trying to customize it as I would like, because if I can't get it to work I certainly can't expect my users to do so.

However in my case rather than go to mate or cinnamon I think I am going to go to kde and try to tweak it to run with as little resource drain as possible. I have a series of computers in the 5-10 year old range that all run perfectly well, but most have a max of 4gb f ram and I don't want to eat up 1gb+ of ram on the desktop unnecessarily, especially since we've been reading for months (or longer) that base kde was almost as light as xfce. In addition, I was reading an article (I think at OMGUBUNTU) about how xfce is moving more into client side decorations of the gnome style, and any movement in a gnome philosophy direction, combined with the glacial speed of development, just doesn't seem like the way forward to me. This isn't a matter of lack of programming resources at xfce apparently, it's a matter of goals and targets, and lack of change just because it doesn't introduce new errors is not an argument for staying with xfce. At least LXQT seems to be moving forward, and has a target that seems more to my liking than xfce's.

If LXDE had a whisker equivalent I would already be there in a heartbeat, but for the present I'll see how light I can get kde to run. I think it probably would make sense for me or someone to set up a separate thread about how to get kde to run as light as possible, but if anyone knows of one already, or a good set of resources toward that goal, I would appreciate hearing of it. I know we had a thread I was involved in about how to use dolphin in MX, but now I'm talking about just making KDE in general run as light as possible while also using kwin and the kde panel etc.