Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-01-27 21:33:54

paledread
Member
Registered: 2018-01-27
Posts: 7

Difficulty setting up Desktop menu

I'm trying to customise my Xubuntu xfce Desktop menu.

I've come to understand that the default desktop menu (and whisker?) is
created by the script at /etc/xdg/menus/xfce/xfce-applications.menu
being run and populated by the *.directory and *.desktop files that it
finds, mainly under /usr/share/desktop-directories
and /usr/share/applications, but maybe from other locations as well.
This is the default before I attempt to make any changes to the menu.

I want to add two sub-directories to the others (Settings,
Accessories, etc) in the main menu named "Terminals" and "Text
Editors". Since these sub-directories are not listed
in /etc/xdg/menus/xfce/xfce-applications.menu nor are there *.directory
files for them under /usr/share/desktop-directories, I need to create
them.

So as explained at https://wiki.xfce.org/howto/customize-menu I firstly
copy /etc/xdg/menus/xfce/xfce-applications.menu to my ~/.config/menus/,
then I edit the copied file to include two extra sub-directory sections
for "Terminals" and "Text Editors". Then I add new Terminals.directory
and Text Editors.directory files to ~/.local/share/desktop-directories/.

According to my understanding, the new xfce-applications.menu will now
take precedence over the same file in /etc/xdg/menus/ and it will add
my two new *.directory files to the menu as sub-directory items.

This is where things start to go astray.

A first running of the desktop right-click menu (maybe whisker too) has
the sub-directories properly listed. Subsequent selections of the menu
"lose" my two new sub-menus, so that I'm back to the default menu.

What is even more confusing is that at some point my new
~/.config/menus/xfce-applications.menu file has been converted from a
script to a fully populated menu file. That file includes my new
sub-directories and the applications that I would expect to see in
these sub-directories, and yet they do not show up when the menu is
activated.

I'll be happy to provide additional information if required.

Offline

#2 2018-01-27 23:38:19

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,060

Re: Difficulty setting up Desktop menu

Hello and welcome.

A first running of the desktop right-click menu (maybe whisker too) has
the sub-directories properly listed. Subsequent selections of the menu
"lose" my two new sub-menus, so that I'm back to the default menu.

This is strange. I can't replicate this issue on Xubuntu 17.10.

I'll be happy to provide additional information if required.

1. What version of Xubuntu are you using?
2. Can you post the contents of your custom menu, desktop directory files and application desktop file.

If it helps, this is what works on my Xubuntu 17.10 install:

  • Copy over the default Xubuntu menu file (which is located in /etc/xdg/xdg-xubuntu)

    cp /etc/xdg/xdg-xubuntu/menus/xfce-applications.menu ~/.config/menus
  • Create a desktop entry for the terminals sub menu

    vi ~/.local/share/desktop-directories/terminals.desktop
    [Desktop Entry]
    Version=1.0
    Type=Directory
    Icon=xfce4-terminal
    Name=Terminals
    Comment=Terminal Editors
  • edit xfce-applications.menu and add the new section in for the directory

    vi ~/.config/menus/xfce-applications.menu (add)
      <Menu>
        <Name>Terminals</Name>
        <Directory>terminals.directory</Directory>
        <Include>
          <Category>Terminals</Category>
        </Include>
      </Menu>
  • create the application's desktop file

    vi ~/.local/share/applications/xfterm.desktop
    [Desktop Entry]
    Version=1.0
    Name=Xfce Terminal 4.14
    Comment=Terminal Emulator
    GenericName=Terminal Emulator
    Exec=xfce4-terminal
    Icon=utilities-terminal
    Terminal=false
    Type=Application
    Categories=Terminals;
    StartupNotify=true

Note: I also needed to restart xfdesktop for the change to take effect.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2018-01-28 00:27:28

paledread
Member
Registered: 2018-01-27
Posts: 7

Re: Difficulty setting up Desktop menu

Xubuntu is Ubuntu 17.10

~/.config/menus/xfce-applications.menu

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  '[url]http://standards.freedesktop.org/menu-spec/menu-1.0.dtd[/url]'>
<Menu>
	<Name>Xfce</Name>
	<DefaultAppDirs />
	<DefaultDirectoryDirs />
	<DefaultMergeDirs />
	<Include>
		<Category>X-Xfce-Toplevel</Category>
	</Include>
	<MergeFile type="parent">/etc/xdg/menus/xfce-applications.menu</MergeFile>
	<Menu>
		<Name>Settings</Name>
		<Directory>xfce-settings.directory</Directory>
		<Menu>
			<Name>Screensavers</Name>
			<Directory>xfce-screensavers.directory</Directory>
			<Layout>
				<Merge type="menus" />
				<Merge type="files" />
			</Layout>
		</Menu>
		<Layout>
			<Merge type="menus" />
			<Separator />
			<Filename>mugshot.desktop</Filename>
			<Filename>xfce4-accessibility-settings.desktop</Filename>
			<Filename>software-properties-drivers.desktop</Filename>
			<Filename>xfce-ui-settings.desktop</Filename>
			<Filename>blueman-adapters.desktop</Filename>
			<Filename>blueman-manager.desktop</Filename>
			<Filename>xinput_calibrator.desktop</Filename>
			<Filename>xfce-backdrop-settings.desktop</Filename>
			<Filename>xfce-display-settings.desktop</Filename>
			<Filename>thunar-settings.desktop</Filename>
			<Filename>gparted.desktop</Filename>
			<Filename>hplip.desktop</Filename>
			<Filename>kdesystemsettings.desktop</Filename>
			<Filename>xfce-keyboard-settings.desktop</Filename>
			<Filename>gnome-language-selector.desktop</Filename>
			<Filename>lightdm-gtk-greeter-settings.desktop</Filename>
			<Filename>alacarte.desktop</Filename>
			<Filename>menulibre.desktop</Filename>
			<Filename>xfce4-mime-settings.desktop</Filename>
			<Filename>xfce-mouse-settings.desktop</Filename>
			<Filename>network.desktop</Filename>
			<Filename>nm-connection-editor.desktop</Filename>
			<Filename>xfce4-notifyd-config.desktop</Filename>
			<Filename>onboard-settings.desktop</Filename>
			<Filename>xfce-xfcalendar-settings.desktop</Filename>
			<Filename>panel-preferences.desktop</Filename>
			<Filename>xfce4-power-manager-settings.desktop</Filename>
			<Filename>exo-preferred-applications.desktop</Filename>
			<Filename>system-config-printer.desktop</Filename>
			<Filename>thunar-volman-settings.desktop</Filename>
			<Filename>gtkorphan.desktop</Filename>
			<Menuname>Screensavers</Menuname>
			<Filename>xfce-session-settings.desktop</Filename>
			<Filename>xfce4-settings-editor.desktop</Filename>
			<Filename>shares.desktop</Filename>
			<Filename>update-manager.desktop</Filename>
			<Filename>software-properties-gtk.desktop</Filename>
			<Filename>synaptic.desktop</Filename>
			<Filename>gtk-theme-config.desktop</Filename>
			<Filename>time.desktop</Filename>
			<Filename>users.desktop</Filename>
			<Filename>xfce-wm-settings.desktop</Filename>
			<Filename>xfce-wmtweaks-settings.desktop</Filename>
			<Filename>xfce-workspaces-settings.desktop</Filename>
			<Filename>xfpanel-switch.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Accessories</Name>
		<Directory>xfce-accessories.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>xfce4-about.desktop</Filename>
			<Filename>xfce4-appfinder.desktop</Filename>
			<Filename>file-roller.desktop</Filename>
			<Filename>org.gnome.FileRoller.desktop</Filename>
			<Filename>org.kde.ark.desktop</Filename>
			<Filename>Thunar-bulk-rename.desktop</Filename>
			<Filename>org.gnome.Calculator.desktop</Filename>
			<Filename>catfish.desktop</Filename>
			<Filename>gucharmap.desktop</Filename>
			<Filename>xfce4-clipman.desktop</Filename>
			<Filename>sqlitebrowser.desktop</Filename>
			<Filename>org.kde.filelight.desktop</Filename>
			<Filename>exo-file-manager.desktop</Filename>
			<Filename>org.gnome.font-viewer.desktop</Filename>
			<Filename>fslint.desktop</Filename>
			<Filename>gvim.desktop</Filename>
			<Filename>org.kde.kate.desktop</Filename>
			<Filename>org.kde.kfontview.desktop</Filename>
			<Filename>org.kde.klipper.desktop</Filename>
			<Filename>org.kde.krusader.desktop</Filename>
			<Filename>leafpad.desktop</Filename>
			<Filename>lightdm-gtk-greeter-settings.desktop</Filename>
			<Filename>alacarte.desktop</Filename>
			<Filename>menulibre.desktop</Filename>
			<Filename>mousepad.desktop</Filename>
			<Filename>xfce4-notes.desktop</Filename>
			<Filename>org.kde.okteta.desktop</Filename>
			<Filename>onboard.desktop</Filename>
			<Filename>onboard-settings.desktop</Filename>
			<Filename>Thunar-folder-handler.desktop</Filename>
			<Filename>globaltime.desktop</Filename>
			<Filename>qalculate-gtk.desktop</Filename>
			<Filename>redshift-gtk.desktop</Filename>
			<Filename>redshift.desktop</Filename>
			<Filename>apport-gtk.desktop</Filename>
			<Filename>xfce4-run.desktop</Filename>
			<Filename>xfce4-screenshooter.desktop</Filename>
			<Filename>xfce4-sensors.desktop</Filename>
			<Filename>SpiderOakONE.desktop</Filename>
			<Filename>xfce4-taskmanager.desktop</Filename>
			<Filename>exo-terminal-emulator.desktop</Filename>
			<Filename>Thunar.desktop</Filename>
			<Filename>debian-uxterm.desktop</Filename>
			<Filename>variety.desktop</Filename>
			<Filename>vim.desktop</Filename>
			<Filename>worker.desktop</Filename>
			<Filename>xfburn.desktop</Filename>
			<Filename>debian-xterm.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Development</Name>
		<Directory>xfce-development.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>bluefish.desktop</Filename>
			<Filename>sqlitebrowser.desktop</Filename>
			<Filename>geany.desktop</Filename>
			<Filename>meld.desktop</Filename>
			<Filename>python2.7.desktop</Filename>
			<Filename>python3.6.desktop</Filename>
			<Filename>assistant-qt5.desktop</Filename>
			<Filename>designer-qt5.desktop</Filename>
			<Filename>linguist-qt5.desktop</Filename>
			<Filename>xdg-wininfo.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Education</Name>
		<Directory>xfce-education.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>libreoffice-math.desktop</Filename>
			<Filename>qalculate-gtk.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Games</Name>
		<Directory>xfce-games.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>sgt-blackbox.desktop</Filename>
			<Filename>sgt-bridges.desktop</Filename>
			<Filename>sgt-cube.desktop</Filename>
			<Filename>sgt-dominosa.desktop</Filename>
			<Filename>sgt-fifteen.desktop</Filename>
			<Filename>sgt-filling.desktop</Filename>
			<Filename>sgt-flip.desktop</Filename>
			<Filename>sgt-flood.desktop</Filename>
			<Filename>sgt-galaxies.desktop</Filename>
			<Filename>sgt-guess.desktop</Filename>
			<Filename>sgt-inertia.desktop</Filename>
			<Filename>sgt-keen.desktop</Filename>
			<Filename>sgt-lightup.desktop</Filename>
			<Filename>sgt-loopy.desktop</Filename>
			<Filename>sgt-magnets.desktop</Filename>
			<Filename>sgt-map.desktop</Filename>
			<Filename>sgt-mines.desktop</Filename>
			<Filename>gnome-mines.desktop</Filename>
			<Filename>sgt-net.desktop</Filename>
			<Filename>sgt-netslide.desktop</Filename>
			<Filename>sgt-palisade.desktop</Filename>
			<Filename>sgt-pattern.desktop</Filename>
			<Filename>sgt-pearl.desktop</Filename>
			<Filename>sgt-pegs.desktop</Filename>
			<Filename>sgt-range.desktop</Filename>
			<Filename>sgt-rect.desktop</Filename>
			<Filename>sgt-samegame.desktop</Filename>
			<Filename>sgt-launcher.desktop</Filename>
			<Filename>sgt-signpost.desktop</Filename>
			<Filename>sgt-singles.desktop</Filename>
			<Filename>sgt-sixteen.desktop</Filename>
			<Filename>sgt-slant.desktop</Filename>
			<Filename>sgt-solo.desktop</Filename>
			<Filename>steam.desktop</Filename>
			<Filename>gnome-sudoku.desktop</Filename>
			<Filename>sgt-tents.desktop</Filename>
			<Filename>sgt-towers.desktop</Filename>
			<Filename>sgt-tracks.desktop</Filename>
			<Filename>sgt-twiddle.desktop</Filename>
			<Filename>sgt-undead.desktop</Filename>
			<Filename>sgt-unequal.desktop</Filename>
			<Filename>sgt-unruly.desktop</Filename>
			<Filename>sgt-untangle.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Graphics</Name>
		<Directory>xfce-graphics.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>evince.desktop</Filename>
			<Filename>feh.desktop</Filename>
			<Filename>geeqie.desktop</Filename>
			<Filename>display-im6.q16.desktop</Filename>
			<Filename>mirage.desktop</Filename>
			<Filename>mupdf.desktop</Filename>
			<Filename>okularApplication_fax.desktop</Filename>
			<Filename>okularApplication_ghostview.desktop</Filename>
			<Filename>okularApplication_txt.desktop</Filename>
			<Filename>okularApplication_pdf.desktop</Filename>
			<Filename>okularApplication_xps.desktop</Filename>
			<Filename>okularApplication_comicbook.desktop</Filename>
			<Filename>okularApplication_ooo.desktop</Filename>
			<Filename>okularApplication_fb.desktop</Filename>
			<Filename>okularApplication_dvi.desktop</Filename>
			<Filename>okularApplication_mobi.desktop</Filename>
			<Filename>org.kde.okular.desktop</Filename>
			<Filename>okularApplication_plucker.desktop</Filename>
			<Filename>okularApplication_kimgio.desktop</Filename>
			<Filename>evince-previewer.desktop</Filename>
			<Filename>ristretto.desktop</Filename>
			<Filename>simple-scan.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Network</Name>
		<Directory>xfce-network.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>AirVPN.desktop</Filename>
			<Filename>org.kde.bluedevilsendfile.desktop</Filename>
			<Filename>org.kde.bluedevilwizard.desktop</Filename>
			<Filename>org.kde.keditbookmarks.desktop</Filename>
			<Filename>claws-mail.desktop</Filename>
			<Filename>firefox.desktop</Filename>
			<Filename>org.kde.knetattach.desktop</Filename>
			<Filename>exo-mail-reader.desktop</Filename>
			<Filename>pidgin.desktop</Filename>
			<Filename>remmina.desktop</Filename>
			<Filename>skypeforlinux.desktop</Filename>
			<Filename>SpiderOakONE.desktop</Filename>
			<Filename>steam.desktop</Filename>
			<Filename>transmission-gtk.desktop</Filename>
			<Filename>exo-web-browser.desktop</Filename>
			<Filename>zenmap.desktop</Filename>
			<Filename>zenmap-root.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Multimedia</Name>
		<Directory>xfce-multimedia.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>alsamixergui.desktop</Filename>
			<Filename>smplayer_enqueue.desktop</Filename>
			<Filename>gnome-alsamixer.desktop</Filename>
			<Filename>mpv.desktop</Filename>
			<Filename>org.xfce.Parole.desktop</Filename>
			<Filename>pavucontrol.desktop</Filename>
			<Filename>qasmixer.desktop</Filename>
			<Filename>smplayer.desktop</Filename>
			<Filename>vlc.desktop</Filename>
			<Filename>xfburn.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Office</Name>
		<Directory>xfce-office.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>xfce4-dict.desktop</Filename>
			<Filename>evince.desktop</Filename>
			<Filename>FBReader.desktop</Filename>
			<Filename>hp-fab.desktop</Filename>
			<Filename>gnumeric.desktop</Filename>
			<Filename>grisbi.desktop</Filename>
			<Filename>hp-sendfax.desktop</Filename>
			<Filename>keepnote.desktop</Filename>
			<Filename>libreoffice-startcenter.desktop</Filename>
			<Filename>libreoffice-calc.desktop</Filename>
			<Filename>libreoffice-math.desktop</Filename>
			<Filename>libreoffice-writer.desktop</Filename>
			<Filename>org.kde.okular.desktop</Filename>
			<Filename>xfcalendar.desktop</Filename>
			<Filename>globaltime.desktop</Filename>
			<Filename>portabase.desktop</Filename>
			<Filename>evince-previewer.desktop</Filename>
			<Filename>qpdfview.desktop</Filename>
			<Filename>rainlendar2.desktop</Filename>
			<Filename>rainlendar2-import.desktop</Filename>
			<Filename>org.kde.tellico.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Other</Name>
		<Directory>xfce-other.directory</Directory>
		<Include>
			<Filename>gcr-prompter.desktop</Filename>
		</Include>
		<Include>
			<Filename>panel-desktop-handler.desktop</Filename>
		</Include>
		<Include>
			<Filename>ktelnetservice5.desktop</Filename>
		</Include>
		<Include>
			<Filename>libreoffice-xsltfilter.desktop</Filename>
		</Include>
		<Include>
			<Filename>mono-runtime-common.desktop</Filename>
		</Include>
		<Include>
			<Filename>mono-runtime-terminal.desktop</Filename>
		</Include>
		<Include>
			<Filename>nm-applet.desktop</Filename>
		</Include>
		<Include>
			<Filename>gcr-viewer.desktop</Filename>
		</Include>
		<Include>
			<Filename>kwalletmanager5-kwalletd.desktop</Filename>
		</Include>
		<Include>
			<Filename>geoclue-where-am-i.desktop</Filename>
		</Include>
		<Layout>
			<Merge type="menus" />
			<Filename>gcr-prompter.desktop</Filename>
			<Filename>panel-desktop-handler.desktop</Filename>
			<Filename>ktelnetservice5.desktop</Filename>
			<Filename>libreoffice-xsltfilter.desktop</Filename>
			<Filename>mono-runtime-common.desktop</Filename>
			<Filename>mono-runtime-terminal.desktop</Filename>
			<Filename>nm-applet.desktop</Filename>
			<Filename>gcr-viewer.desktop</Filename>
			<Filename>kwalletmanager5-kwalletd.desktop</Filename>
			<Filename>geoclue-where-am-i.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>System</Name>
		<Directory>xfce-system.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>org.gnome.Software.Editor.desktop</Filename>
			<Filename>bleachbit.desktop</Filename>
			<Filename>bleachbit-root.desktop</Filename>
			<Filename>Thunar-bulk-rename.desktop</Filename>
			<Filename>xinput_calibrator.desktop</Filename>
			<Filename>fslint.desktop</Filename>
			<Filename>gdebi.desktop</Filename>
			<Filename>gigolo.desktop</Filename>
			<Filename>gparted.desktop</Filename>
			<Filename>org.kde.konsole.desktop</Filename>
			<Filename>org.kde.ksysguard.desktop</Filename>
			<Filename>org.kde.ksystemlog.desktop</Filename>
			<Filename>org.kde.kwalletmanager5.desktop</Filename>
			<Filename>lightdm-gtk-greeter-settings.desktop</Filename>
			<Filename>xfce4-session-logout.desktop</Filename>
			<Filename>lxterminal.desktop</Filename>
			<Filename>network.desktop</Filename>
			<Filename>Thunar-folder-handler.desktop</Filename>
			<Filename>system-config-printer.desktop</Filename>
			<Filename>hplj1020.desktop</Filename>
			<Filename>gtkorphan.desktop</Filename>
			<Filename>gksu.desktop</Filename>
			<Filename>xfce4-sensors.desktop</Filename>
			<Filename>shares.desktop</Filename>
			<Filename>org.gnome.Software.desktop</Filename>
			<Filename>gnome-software-local-file.desktop</Filename>
			<Filename>update-manager.desktop</Filename>
			<Filename>usb-creator-kde.desktop</Filename>
			<Filename>synaptic.desktop</Filename>
			<Filename>xfce4-taskmanager.desktop</Filename>
			<Filename>Thunar.desktop</Filename>
			<Filename>time.desktop</Filename>
			<Filename>ukuu.desktop</Filename>
			<Filename>unetbootin.desktop</Filename>
			<Filename>users.desktop</Filename>
			<Filename>debian-uxterm.desktop</Filename>
			<Filename>xfce4-terminal.desktop</Filename>
			<Filename>debian-xterm.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Terminals</Name>
		<Directory>Terminals.directory</Directory>
		<DirectoryDir>/home/ccc/.local/share/desktop-directories</DirectoryDir>
		<Layout>
			<Merge type="menus" />
			<Filename>org.kde.konsole.desktop</Filename>
			<Filename>lxterminal.desktop</Filename>
			<Filename>gksu.desktop</Filename>
			<Filename>debian-uxterm.desktop</Filename>
			<Filename>xfce4-terminal.desktop</Filename>
			<Filename>debian-xterm.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Text Editors</Name>
		<Directory>Text Editors.directory</Directory>
		<DirectoryDir>/home/ccc/.local/share/desktop-directories</DirectoryDir>
		<Layout>
			<Merge type="menus" />
			<Filename>gvim.desktop</Filename>
			<Filename>org.kde.kate.desktop</Filename>
			<Filename>leafpad.desktop</Filename>
			<Filename>mousepad.desktop</Filename>
			<Filename>vim.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Layout>
		<Filename>xfce4-run.desktop</Filename>
		<Separator />
		<Filename>exo-terminal-emulator.desktop</Filename>
		<Filename>exo-file-manager.desktop</Filename>
		<Filename>exo-mail-reader.desktop</Filename>
		<Filename>exo-web-browser.desktop</Filename>
		<Menuname>Settings</Menuname>
		<Separator />
		<Menuname>Accessories</Menuname>
		<Menuname>Development</Menuname>
		<Menuname>Education</Menuname>
		<Menuname>Games</Menuname>
		<Menuname>Graphics</Menuname>
		<Menuname>Network</Menuname>
		<Menuname>Multimedia</Menuname>
		<Menuname>Office</Menuname>
		<Menuname>Other</Menuname>
		<Menuname>System</Menuname>
		<Menuname>Terminals</Menuname>
		<Menuname>Text Editors</Menuname>
		<Separator />
		<Filename>xfce4-about.desktop</Filename>
		<Filename>xfce4-session-logout.desktop</Filename>
	</Layout>
</Menu>

~/.local/share/desktop-directories/Terminals.directory

[Desktop Entry]
Name=Terminals
Comment=Terminal emulators
Icon=applications-office
Type=Directory

~/.local/share/desktop-directories/Text Editors.directory

[Desktop Entry]
Name=Text Editors
Comment=Text editors
Icon=applications-office
Type=Directory

?application desktop file?

I'll test your procedure tomorrow and report back.

Thanks.

ToZ: added code tags

Last edited by ToZ (2018-01-28 00:53:36)

Offline

#4 2018-01-28 00:55:15

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,060

Re: Difficulty setting up Desktop menu

paledread wrote:

?application desktop file?

Yes. For each of the applciations that you want showing in that menu you have to change the Categories section of the application's .desktop file to point to the new desktop-directory. Best to copy the existing .desktop file to ~/.local/share/applications and edit it there.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#5 2018-01-29 00:28:53

paledread
Member
Registered: 2018-01-27
Posts: 7

Re: Difficulty setting up Desktop menu

Sorry for delay. I managed to delete my ~/.config directory which created some problems.

Followed your procedure using /etc/xdg/xdg-ubuntu/menus/xfce-applications-menu as my base instead of /etc/xdg/menus/xfce-applications-menu which I had been using previously.

After completing, behaviour was as follows. On first opening of the desktop menu everything was perfect, a Terminals  sub-menu with choice of all terminals, and a Text Editors sub-menu with choice of editors.

So I then opened Menu Editor and noted that the same sub-menu entries and apps existed there. I noticed that the entry for lxterminal was set not to display so changed this and as a result then saved the file to confirm the change.

Accessed the desktop menu again and found the Text Editors sub-menu missing and the only entry under Terminals being LXTerminal.

So little change found from previous behaviour.

Files follow.

XFCE-APPLICATIONS.MENU

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  '[url]http://standards.freedesktop.org/menu-spec/menu-1.0.dtd[/url]'>
<Menu>
	<Name>Xfce</Name>
	<DefaultAppDirs />
	<DefaultDirectoryDirs />
	<DefaultMergeDirs />
	<Include>
		<Category>X-Xfce-Toplevel</Category>
	</Include>
	<MergeFile type="parent">/etc/xdg/menus/xfce-applications.menu</MergeFile>
	<Menu>
		<Name>Accessories</Name>
		<Directory>xfce-accessories.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>xfce4-run.desktop</Filename>
			<Filename>xfce4-appfinder.desktop</Filename>
			<Separator />
			<Filename>mugshot.desktop</Filename>
			<Filename>xfce4-about.desktop</Filename>
			<Filename>xfce4-accessibility-settings.desktop</Filename>
			<Filename>software-properties-drivers.desktop</Filename>
			<Filename>xfce-ui-settings.desktop</Filename>
			<Filename>file-roller.desktop</Filename>
			<Filename>org.gnome.FileRoller.desktop</Filename>
			<Filename>org.kde.ark.desktop</Filename>
			<Filename>org.gnome.Software.Editor.desktop</Filename>
			<Filename>bleachbit.desktop</Filename>
			<Filename>bleachbit-root.desktop</Filename>
			<Filename>blueman-adapters.desktop</Filename>
			<Filename>blueman-manager.desktop</Filename>
			<Filename>Thunar-bulk-rename.desktop</Filename>
			<Filename>org.gnome.Calculator.desktop</Filename>
			<Filename>xinput_calibrator.desktop</Filename>
			<Filename>catfish.desktop</Filename>
			<Filename>gucharmap.desktop</Filename>
			<Filename>xfce4-clipman.desktop</Filename>
			<Filename>sqlitebrowser.desktop</Filename>
			<Filename>xfce-backdrop-settings.desktop</Filename>
			<Filename>xfce-display-settings.desktop</Filename>
			<Filename>org.kde.filelight.desktop</Filename>
			<Filename>thunar-settings.desktop</Filename>
			<Filename>exo-file-manager.desktop</Filename>
			<Filename>org.gnome.font-viewer.desktop</Filename>
			<Filename>fslint.desktop</Filename>
			<Filename>gdebi.desktop</Filename>
			<Filename>gigolo.desktop</Filename>
			<Filename>gparted.desktop</Filename>
			<Filename>gvim.desktop</Filename>
			<Filename>hplip.desktop</Filename>
			<Filename>org.kde.kate.desktop</Filename>
			<Filename>kdesystemsettings.desktop</Filename>
			<Filename>xfce-keyboard-settings.desktop</Filename>
			<Filename>org.kde.kfontview.desktop</Filename>
			<Filename>org.kde.klipper.desktop</Filename>
			<Filename>org.kde.krusader.desktop</Filename>
			<Filename>org.kde.ksysguard.desktop</Filename>
			<Filename>org.kde.ksystemlog.desktop</Filename>
			<Filename>org.kde.kwalletmanager5.desktop</Filename>
			<Filename>gnome-language-selector.desktop</Filename>
			<Filename>leafpad.desktop</Filename>
			<Filename>lightdm-gtk-greeter-settings.desktop</Filename>
			<Filename>xfce4-session-logout.desktop</Filename>
			<Filename>alacarte.desktop</Filename>
			<Filename>menulibre.desktop</Filename>
			<Filename>xfce4-mime-settings.desktop</Filename>
			<Filename>xfce-mouse-settings.desktop</Filename>
			<Filename>mousepad.desktop</Filename>
			<Filename>network.desktop</Filename>
			<Filename>nm-connection-editor.desktop</Filename>
			<Filename>xfce4-notes.desktop</Filename>
			<Filename>xfce4-notifyd-config.desktop</Filename>
			<Filename>org.kde.okteta.desktop</Filename>
			<Filename>onboard.desktop</Filename>
			<Filename>onboard-settings.desktop</Filename>
			<Filename>Thunar-folder-handler.desktop</Filename>
			<Filename>globaltime.desktop</Filename>
			<Filename>xfce-xfcalendar-settings.desktop</Filename>
			<Filename>panel-preferences.desktop</Filename>
			<Filename>xfce4-power-manager-settings.desktop</Filename>
			<Filename>exo-preferred-applications.desktop</Filename>
			<Filename>system-config-printer.desktop</Filename>
			<Filename>qalculate-gtk.desktop</Filename>
			<Filename>hplj1020.desktop</Filename>
			<Filename>redshift-gtk.desktop</Filename>
			<Filename>redshift.desktop</Filename>
			<Filename>thunar-volman-settings.desktop</Filename>
			<Filename>gtkorphan.desktop</Filename>
			<Filename>apport-gtk.desktop</Filename>
			<Filename>xfce4-screenshooter.desktop</Filename>
			<Filename>xfce4-sensors.desktop</Filename>
			<Filename>xfce-session-settings.desktop</Filename>
			<Filename>xfce4-settings-editor.desktop</Filename>
			<Filename>shares.desktop</Filename>
			<Filename>org.gnome.Software.desktop</Filename>
			<Filename>gnome-software-local-file.desktop</Filename>
			<Filename>update-manager.desktop</Filename>
			<Filename>software-properties-gtk.desktop</Filename>
			<Filename>SpiderOakONE.desktop</Filename>
			<Filename>usb-creator-kde.desktop</Filename>
			<Filename>synaptic.desktop</Filename>
			<Filename>xfce4-taskmanager.desktop</Filename>
			<Filename>exo-terminal-emulator.desktop</Filename>
			<Filename>gtk-theme-config.desktop</Filename>
			<Filename>Thunar.desktop</Filename>
			<Filename>time.desktop</Filename>
			<Filename>ukuu.desktop</Filename>
			<Filename>unetbootin.desktop</Filename>
			<Filename>users.desktop</Filename>
			<Filename>variety.desktop</Filename>
			<Filename>vim.desktop</Filename>
			<Filename>xfce-wm-settings.desktop</Filename>
			<Filename>xfce-wmtweaks-settings.desktop</Filename>
			<Filename>worker.desktop</Filename>
			<Filename>xfce-workspaces-settings.desktop</Filename>
			<Filename>xfburn.desktop</Filename>
			<Filename>xfpanel-switch.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Development</Name>
		<Directory>xfce-development.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>bluefish.desktop</Filename>
			<Filename>sqlitebrowser.desktop</Filename>
			<Filename>geany.desktop</Filename>
			<Filename>meld.desktop</Filename>
			<Filename>python2.7.desktop</Filename>
			<Filename>python3.6.desktop</Filename>
			<Filename>assistant-qt5.desktop</Filename>
			<Filename>designer-qt5.desktop</Filename>
			<Filename>linguist-qt5.desktop</Filename>
			<Filename>xdg-wininfo.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Education</Name>
		<Directory>xfce-education.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>libreoffice-math.desktop</Filename>
			<Filename>qalculate-gtk.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Games</Name>
		<Directory>xfce-games.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>sgt-blackbox.desktop</Filename>
			<Filename>sgt-bridges.desktop</Filename>
			<Filename>sgt-cube.desktop</Filename>
			<Filename>sgt-dominosa.desktop</Filename>
			<Filename>sgt-fifteen.desktop</Filename>
			<Filename>sgt-filling.desktop</Filename>
			<Filename>sgt-flip.desktop</Filename>
			<Filename>sgt-flood.desktop</Filename>
			<Filename>sgt-galaxies.desktop</Filename>
			<Filename>sgt-guess.desktop</Filename>
			<Filename>sgt-inertia.desktop</Filename>
			<Filename>sgt-keen.desktop</Filename>
			<Filename>sgt-lightup.desktop</Filename>
			<Filename>sgt-loopy.desktop</Filename>
			<Filename>sgt-magnets.desktop</Filename>
			<Filename>sgt-map.desktop</Filename>
			<Filename>sgt-mines.desktop</Filename>
			<Filename>gnome-mines.desktop</Filename>
			<Filename>sgt-net.desktop</Filename>
			<Filename>sgt-netslide.desktop</Filename>
			<Filename>sgt-palisade.desktop</Filename>
			<Filename>sgt-pattern.desktop</Filename>
			<Filename>sgt-pearl.desktop</Filename>
			<Filename>sgt-pegs.desktop</Filename>
			<Filename>sgt-range.desktop</Filename>
			<Filename>sgt-rect.desktop</Filename>
			<Filename>sgt-samegame.desktop</Filename>
			<Filename>sgt-launcher.desktop</Filename>
			<Filename>sgt-signpost.desktop</Filename>
			<Filename>sgt-singles.desktop</Filename>
			<Filename>sgt-sixteen.desktop</Filename>
			<Filename>sgt-slant.desktop</Filename>
			<Filename>sgt-solo.desktop</Filename>
			<Filename>steam.desktop</Filename>
			<Filename>gnome-sudoku.desktop</Filename>
			<Filename>sgt-tents.desktop</Filename>
			<Filename>sgt-towers.desktop</Filename>
			<Filename>sgt-tracks.desktop</Filename>
			<Filename>sgt-twiddle.desktop</Filename>
			<Filename>sgt-undead.desktop</Filename>
			<Filename>sgt-unequal.desktop</Filename>
			<Filename>sgt-unruly.desktop</Filename>
			<Filename>sgt-untangle.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Graphics</Name>
		<Directory>xfce-graphics.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>evince.desktop</Filename>
			<Filename>feh.desktop</Filename>
			<Filename>geeqie.desktop</Filename>
			<Filename>display-im6.q16.desktop</Filename>
			<Filename>mirage.desktop</Filename>
			<Filename>mupdf.desktop</Filename>
			<Filename>okularApplication_fax.desktop</Filename>
			<Filename>okularApplication_ghostview.desktop</Filename>
			<Filename>okularApplication_txt.desktop</Filename>
			<Filename>okularApplication_pdf.desktop</Filename>
			<Filename>okularApplication_xps.desktop</Filename>
			<Filename>okularApplication_comicbook.desktop</Filename>
			<Filename>okularApplication_ooo.desktop</Filename>
			<Filename>okularApplication_fb.desktop</Filename>
			<Filename>okularApplication_dvi.desktop</Filename>
			<Filename>okularApplication_mobi.desktop</Filename>
			<Filename>org.kde.okular.desktop</Filename>
			<Filename>okularApplication_plucker.desktop</Filename>
			<Filename>okularApplication_kimgio.desktop</Filename>
			<Filename>evince-previewer.desktop</Filename>
			<Filename>ristretto.desktop</Filename>
			<Filename>simple-scan.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Network</Name>
		<Directory>xfce-network.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>AirVPN.desktop</Filename>
			<Filename>org.kde.bluedevilsendfile.desktop</Filename>
			<Filename>org.kde.bluedevilwizard.desktop</Filename>
			<Filename>org.kde.keditbookmarks.desktop</Filename>
			<Filename>claws-mail.desktop</Filename>
			<Filename>firefox.desktop</Filename>
			<Filename>org.kde.knetattach.desktop</Filename>
			<Filename>exo-mail-reader.desktop</Filename>
			<Filename>exo-mail-reader(1).desktop</Filename>
			<Filename>pidgin.desktop</Filename>
			<Filename>remmina.desktop</Filename>
			<Filename>skypeforlinux.desktop</Filename>
			<Filename>SpiderOakONE.desktop</Filename>
			<Filename>steam.desktop</Filename>
			<Filename>transmission-gtk.desktop</Filename>
			<Filename>exo-web-browser.desktop</Filename>
			<Filename>zenmap.desktop</Filename>
			<Filename>zenmap-root.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Multimedia</Name>
		<Directory>xfce-multimedia.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>alsamixergui.desktop</Filename>
			<Filename>smplayer_enqueue.desktop</Filename>
			<Filename>gnome-alsamixer.desktop</Filename>
			<Filename>mpv.desktop</Filename>
			<Filename>org.xfce.Parole.desktop</Filename>
			<Filename>pavucontrol.desktop</Filename>
			<Filename>qasmixer.desktop</Filename>
			<Filename>smplayer.desktop</Filename>
			<Filename>vlc.desktop</Filename>
			<Filename>xfburn.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Office</Name>
		<Directory>xfce-office.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>xfce4-dict.desktop</Filename>
			<Filename>evince.desktop</Filename>
			<Filename>FBReader.desktop</Filename>
			<Filename>hp-fab.desktop</Filename>
			<Filename>gnumeric.desktop</Filename>
			<Filename>grisbi.desktop</Filename>
			<Filename>hp-sendfax.desktop</Filename>
			<Filename>keepnote.desktop</Filename>
			<Filename>libreoffice-startcenter.desktop</Filename>
			<Filename>libreoffice-calc.desktop</Filename>
			<Filename>libreoffice-math.desktop</Filename>
			<Filename>libreoffice-writer.desktop</Filename>
			<Filename>org.kde.okular.desktop</Filename>
			<Filename>xfcalendar.desktop</Filename>
			<Filename>globaltime.desktop</Filename>
			<Filename>portabase.desktop</Filename>
			<Filename>evince-previewer.desktop</Filename>
			<Filename>qpdfview.desktop</Filename>
			<Filename>rainlendar2.desktop</Filename>
			<Filename>rainlendar2-import.desktop</Filename>
			<Filename>org.kde.tellico.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Other</Name>
		<Directory>xfce-other.directory</Directory>
		<Include>
			<Filename>gcr-prompter.desktop</Filename>
		</Include>
		<Include>
			<Filename>panel-desktop-handler.desktop</Filename>
		</Include>
		<Include>
			<Filename>ktelnetservice5.desktop</Filename>
		</Include>
		<Include>
			<Filename>libreoffice-xsltfilter.desktop</Filename>
		</Include>
		<Include>
			<Filename>mono-runtime-common.desktop</Filename>
		</Include>
		<Include>
			<Filename>mono-runtime-terminal.desktop</Filename>
		</Include>
		<Include>
			<Filename>nm-applet.desktop</Filename>
		</Include>
		<Include>
			<Filename>gcr-viewer.desktop</Filename>
		</Include>
		<Include>
			<Filename>kwalletmanager5-kwalletd.desktop</Filename>
		</Include>
		<Include>
			<Filename>geoclue-where-am-i.desktop</Filename>
		</Include>
		<Layout>
			<Merge type="menus" />
			<Filename>gcr-prompter.desktop</Filename>
			<Filename>panel-desktop-handler.desktop</Filename>
			<Filename>ktelnetservice5.desktop</Filename>
			<Filename>libreoffice-xsltfilter.desktop</Filename>
			<Filename>mono-runtime-common.desktop</Filename>
			<Filename>mono-runtime-terminal.desktop</Filename>
			<Filename>nm-applet.desktop</Filename>
			<Filename>gcr-viewer.desktop</Filename>
			<Filename>kwalletmanager5-kwalletd.desktop</Filename>
			<Filename>geoclue-where-am-i.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Settings</Name>
		<Directory>xfce-settings.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>mugshot.desktop</Filename>
			<Filename>xfce4-accessibility-settings.desktop</Filename>
			<Filename>software-properties-drivers.desktop</Filename>
			<Filename>xfce-ui-settings.desktop</Filename>
			<Filename>blueman-adapters.desktop</Filename>
			<Filename>blueman-manager.desktop</Filename>
			<Filename>xinput_calibrator.desktop</Filename>
			<Filename>xfce-backdrop-settings.desktop</Filename>
			<Filename>xfce-display-settings.desktop</Filename>
			<Filename>thunar-settings.desktop</Filename>
			<Filename>gparted.desktop</Filename>
			<Filename>hplip.desktop</Filename>
			<Filename>kdesystemsettings.desktop</Filename>
			<Filename>xfce-keyboard-settings.desktop</Filename>
			<Filename>gnome-language-selector.desktop</Filename>
			<Filename>lightdm-gtk-greeter-settings.desktop</Filename>
			<Filename>exo-mail-reader.desktop</Filename>
			<Filename>alacarte.desktop</Filename>
			<Filename>menulibre.desktop</Filename>
			<Filename>xfce4-mime-settings.desktop</Filename>
			<Filename>xfce-mouse-settings.desktop</Filename>
			<Filename>network.desktop</Filename>
			<Filename>nm-connection-editor.desktop</Filename>
			<Filename>xfce4-notifyd-config.desktop</Filename>
			<Filename>onboard-settings.desktop</Filename>
			<Filename>xfce-xfcalendar-settings.desktop</Filename>
			<Filename>panel-preferences.desktop</Filename>
			<Filename>xfce4-power-manager-settings.desktop</Filename>
			<Filename>exo-preferred-applications.desktop</Filename>
			<Filename>system-config-printer.desktop</Filename>
			<Filename>thunar-volman-settings.desktop</Filename>
			<Filename>gtkorphan.desktop</Filename>
			<Filename>xfce-session-settings.desktop</Filename>
			<Filename>xfce4-settings-editor.desktop</Filename>
			<Filename>shares.desktop</Filename>
			<Filename>update-manager.desktop</Filename>
			<Filename>software-properties-gtk.desktop</Filename>
			<Filename>synaptic.desktop</Filename>
			<Filename>gtk-theme-config.desktop</Filename>
			<Filename>time.desktop</Filename>
			<Filename>users.desktop</Filename>
			<Filename>exo-web-browser.desktop</Filename>
			<Filename>xfce-wm-settings.desktop</Filename>
			<Filename>xfce-wmtweaks-settings.desktop</Filename>
			<Filename>xfce-workspaces-settings.desktop</Filename>
			<Filename>xfpanel-switch.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>System</Name>
		<Directory>xfce-system.directory</Directory>
		<Layout>
			<Merge type="menus" />
			<Filename>mugshot.desktop</Filename>
			<Filename>xfce4-accessibility-settings.desktop</Filename>
			<Filename>software-properties-drivers.desktop</Filename>
			<Filename>xfce-ui-settings.desktop</Filename>
			<Filename>org.gnome.Software.Editor.desktop</Filename>
			<Filename>bleachbit.desktop</Filename>
			<Filename>bleachbit-root.desktop</Filename>
			<Filename>blueman-adapters.desktop</Filename>
			<Filename>blueman-manager.desktop</Filename>
			<Filename>Thunar-bulk-rename.desktop</Filename>
			<Filename>xinput_calibrator.desktop</Filename>
			<Filename>xfce-backdrop-settings.desktop</Filename>
			<Filename>xfce-display-settings.desktop</Filename>
			<Filename>thunar-settings.desktop</Filename>
			<Filename>fslint.desktop</Filename>
			<Filename>gdebi.desktop</Filename>
			<Filename>gigolo.desktop</Filename>
			<Filename>gparted.desktop</Filename>
			<Filename>hplip.desktop</Filename>
			<Filename>kdesystemsettings.desktop</Filename>
			<Filename>xfce-keyboard-settings.desktop</Filename>
			<Filename>org.kde.ksysguard.desktop</Filename>
			<Filename>org.kde.ksystemlog.desktop</Filename>
			<Filename>org.kde.kwalletmanager5.desktop</Filename>
			<Filename>gnome-language-selector.desktop</Filename>
			<Filename>lightdm-gtk-greeter-settings.desktop</Filename>
			<Filename>xfce4-session-logout.desktop</Filename>
			<Filename>alacarte.desktop</Filename>
			<Filename>menulibre.desktop</Filename>
			<Filename>xfce4-mime-settings.desktop</Filename>
			<Filename>xfce-mouse-settings.desktop</Filename>
			<Filename>network.desktop</Filename>
			<Filename>nm-connection-editor.desktop</Filename>
			<Filename>xfce4-notifyd-config.desktop</Filename>
			<Filename>onboard-settings.desktop</Filename>
			<Filename>Thunar-folder-handler.desktop</Filename>
			<Filename>xfce-xfcalendar-settings.desktop</Filename>
			<Filename>panel-preferences.desktop</Filename>
			<Filename>xfce4-power-manager-settings.desktop</Filename>
			<Filename>exo-preferred-applications.desktop</Filename>
			<Filename>system-config-printer.desktop</Filename>
			<Filename>hplj1020.desktop</Filename>
			<Filename>thunar-volman-settings.desktop</Filename>
			<Filename>gtkorphan.desktop</Filename>
			<Filename>xfce4-sensors.desktop</Filename>
			<Filename>xfce-session-settings.desktop</Filename>
			<Filename>xfce4-settings-editor.desktop</Filename>
			<Filename>shares.desktop</Filename>
			<Filename>org.gnome.Software.desktop</Filename>
			<Filename>gnome-software-local-file.desktop</Filename>
			<Filename>update-manager.desktop</Filename>
			<Filename>software-properties-gtk.desktop</Filename>
			<Filename>usb-creator-kde.desktop</Filename>
			<Filename>synaptic.desktop</Filename>
			<Filename>xfce4-taskmanager.desktop</Filename>
			<Filename>gtk-theme-config.desktop</Filename>
			<Filename>Thunar.desktop</Filename>
			<Filename>time.desktop</Filename>
			<Filename>ukuu.desktop</Filename>
			<Filename>unetbootin.desktop</Filename>
			<Filename>users.desktop</Filename>
			<Filename>xfce-wm-settings.desktop</Filename>
			<Filename>xfce-wmtweaks-settings.desktop</Filename>
			<Filename>xfce-workspaces-settings.desktop</Filename>
			<Filename>xfpanel-switch.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Terminals</Name>
		<Directory>Terminals.directory</Directory>
		<DirectoryDir>/home/ccc/.local/share/desktop-directories</DirectoryDir>
		<Layout>
			<Merge type="menus" />
			<Filename>org.kde.konsole.desktop</Filename>
			<Filename>lxterminal.desktop</Filename>
			<Filename>gksu.desktop</Filename>
			<Filename>debian-uxterm.desktop</Filename>
			<Filename>xfce4-terminal.desktop</Filename>
			<Filename>debian-xterm.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Menu>
		<Name>Text Editors</Name>
		<Directory>Text Editors.directory</Directory>
		<DirectoryDir>/home/ccc/.local/share/desktop-directories</DirectoryDir>
		<Layout>
			<Merge type="menus" />
			<Filename>gvim.desktop</Filename>
			<Filename>org.kde.kate.desktop</Filename>
			<Filename>leafpad.desktop</Filename>
			<Filename>mousepad.desktop</Filename>
			<Filename>vim.desktop</Filename>
			<Merge type="files" />
		</Layout>
	</Menu>
	<Layout>
		<Filename>exo-web-browser.desktop</Filename>
		<Filename>exo-mail-reader.desktop</Filename>
		<Separator />
		<Separator />
		<Menuname>Accessories</Menuname>
		<Menuname>Development</Menuname>
		<Menuname>Education</Menuname>
		<Menuname>Games</Menuname>
		<Menuname>Graphics</Menuname>
		<Menuname>Network</Menuname>
		<Menuname>Multimedia</Menuname>
		<Menuname>Office</Menuname>
		<Menuname>Other</Menuname>
		<Menuname>Settings</Menuname>
		<Menuname>System</Menuname>
		<Menuname>Terminals</Menuname>
		<Menuname>Text Editors</Menuname>
		<Separator />
		<Filename>org.gnome.Software.desktop</Filename>
		<Separator />
		<Filename>xfce4-about.desktop</Filename>
		<Filename>xfce4-session-logout.desktop</Filename>
	</Layout>
</Menu>

Terminals.directory :

[Desktop Entry]
Name=Terminals
Comment=Terminal emulators
Icon=applications-office
Type=Directory

Text Editors.directory

[Desktop Entry]
Name=Text Editors
Comment=Text editors
Icon=applications-office
Type=Directory

debian-uxterm.desktop (other terminal and text editors are similar) :

[Desktop Entry]
Name=UXTerm
Comment=standard terminal emulator for the X window system
Exec=uxterm
Terminal=false
Type=Application
Icon=xterm-color
Categories=TerminalEmulator;
Keywords=shell;prompt;command;commandline;cmd;
X-Desktop-File-Install-Version=0.22

lxterminal.desktop :

[Desktop Entry]
Version=1.1
Type=Application
Name=LXTerminal
GenericName=Terminal
Comment=Use the command line
Icon=lxterminal
TryExec=lxterminal
Exec=lxterminal
Categories=GTK;TerminalEmulator;
Keywords=console;command line;execute;

ToZ: added code blocks

Last edited by ToZ (2018-01-29 04:36:01)

Offline

#6 2018-01-29 04:39:40

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,060

Re: Difficulty setting up Desktop menu

It sounds like the menu editor is overwriting the manual changes. Do everything again, this time don't use the menu editor. Does everything work fine if you don't use the menu editor?


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#7 2018-01-29 13:00:21

paledread
Member
Registered: 2018-01-27
Posts: 7

Re: Difficulty setting up Desktop menu

Will do this within 24 hours.

But surely my newly written xfce-appplications.menu is still showing the menu entries that I want. This after being saved by the menu editor.

How can you blame the menu editor?

The xfce-applcations.menu is not being displayed as it should?

Offline

#8 2018-01-29 19:20:29

paledread
Member
Registered: 2018-01-27
Posts: 7

Re: Difficulty setting up Desktop menu

Edited my xfce-applications.menu to include Terminals and Text Editors sub-menus, placed Terminals.directory and Text Editors.directory in my .local directory and added six *.desktop files for terminals and one for a text editor under .local.

Logged out and logged in again.

The desktop menu is now just what I expect to see (also Whisker menu). My xfce-applications.menu remains unchanged. Menu editor not used.

Offline

#9 2018-01-29 21:15:23

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,060

Re: Difficulty setting up Desktop menu

How can you blame the menu editor?

So I then opened Menu Editor and noted that the same sub-menu entries and apps existed there. I noticed that the entry for lxterminal was set not to display so changed this and as a result then saved the file to confirm the change.

Accessed the desktop menu again and found the Text Editors sub-menu missing and the only entry under Terminals being LXTerminal.

I believe that when you save the entry using the menu editor, it is making a change somewhere to the .desktop files that you want in Text Editors. The Text Editors sub menu will only appear if there is something to display (Categories line of the desktop file). Also, review the entries that the menu editor is making in ~/.local/share/applications because the will override yours.

Or make all of the changes manually by hand.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#10 2018-01-29 22:39:38

paledread
Member
Registered: 2018-01-27
Posts: 7

Re: Difficulty setting up Desktop menu

I'm not sure I understand your point.

At present I have an unpopulated xfce-applications.menu saved under ~/,config/menus. It is the same menu as exists at /etc/xdg/xdg-ubuntu/menus with the addition of two sub-directories, "Terminals" and "Text Editors".

My desktop and Whisker menus currently behave exactly as expected.

Now I need to edit the menu(s) to get them exactly as I want them.

If I use the menu editor to make the changes and save the changes with the menu editor it seems that after the first time I make a change and save it, my xfce-applications.menu is changed and written back to disk, not as a script (as it is now) but as a fully populated file with all the current menu applications written in line by line under their sub-directories.

Without understanding the mechanism involved, this doesn't seem to be a bad thing as instead of the script having to search for menu entries every time the menu is opened, they would be there and available in the file.

However the desktop menu seems to fail to read the new amended file, as after the modification my new sub-menus with their applications fail to show up even though they are evident in the changed file.

There were to my knowledge no changes in the *.desktop files (unless specifically made by the menu editor).

You seem to be suggesting that I should manually make changes to the *.desktop files to achieve my required menu, and I have no problem doing that.

It just seems that if a menu editor is included in Xubuntu that it should work, and not create a file that then becomes non-functional.

If you are recommending that the menu editor not be used at all then I have no problem with that either. I'll simply remove it from the menu.

Offline

#11 2018-01-30 03:52:34

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 4,060

Re: Difficulty setting up Desktop menu

I think the issue here is that by using both methods they are getting in each others way.

For example, to use menulibre (the menu editor) to create a Terminals submenu and a terminal desktop entry, you would do the following:

1. Click the Plus and select "Add Directory"
2. On the right of the editor, change the label to "Terminals", select the icon and click save.

* this will create a ~/.local/share/desktop-directories/menulibre-terminals.desktop file and create/update the ~/.config/menus/xfce-applications.menu to include an entry for Terminals. (note that at this point in time, nothing is visible yet in the menus)

3. To create a new menu entry for lxterminal, with the Terminals submenu selected, click the plus and select "Add Launcher". Change the name, select an icon, set the command to "lxterminal", and click Save (which will populate the categories section with the Terminals desktop entry.

*this will also create the following:
- ~/.local/share/applications/menulibre-new-launcher.desktop (the desktop file)
- ~/.config/menus/gnome-applications-merged/user-menulibre-terminals.menu & ~/.config/menus/applications-merged/user-menulibre-terminals.menu (merged menu entries). At this point, the Terminals submenu will show up with LXTerminal as an entry.

4. If you want to move an existing menu entry to the Terminals submenu, locate it in the side bar and use the up/down arrow keys to move it there. Click save when complete. This will create a desktop file entry in ~/.local/share/applications.

5. For the change to take effect in the desktop menu, you need to restart xfdesktop via "pkill xfdesktop"

I think you need to select one method and use it to maintain your menu.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#12 2018-01-30 23:31:05

paledread
Member
Registered: 2018-01-27
Posts: 7

Re: Difficulty setting up Desktop menu

Thanks for this.

Other stuff is getting in the way for the moment but I'll test this out as soon as I can get to it.

Offline

Board footer

Powered by FluxBB