[Desktop Entry]
Encoding=UTF-8
Type=Directory
Name=My Stuff
Icon=folder
and then, for an application to appear under the submenu, the application specification would resemble
[Desktop Entry]
Encoding=UTF-8
Name=Trimtext
Type=Application
Terminal=false
Exec=/home/clean/MyStuff/trimtext
Icon=/home/clean/MyStuff/Trimtext/trimtext-22.png
Icon[en_US]=/home/clean/MyStuff/Trimtext/trimtext-22.png
with the subdirectory and application entry being created with
Code: Select all
#!/bin/sh
XDG_UTILS_DEBUG_LEVEL=9
export XDG_UTILS_DEBUG_LEVEL
xdg-desktop-menu install ./mystuff-menu.directory \
./mystuff-trimtext.desktop
echo "install: $?"
For testing, I created a clean account (/home/clean), confirmed that the paths are correct, and that the files exist and are appropriately protected (executable trimtext is 755 and mystuff-menu.directory, mystuff-trimtext.desktop, and
trimtext-22.png are 644). When the script is run, an "Other" submenu appears with "trimtext" appearing under "Other". The expected files appear in the expected subdirectories as follows:
Code: Select all
Subdirectory File
~/.config/menus/applications-merged user-mystuff-menu.menu
~/.local/share/applications mystuff-trimtext.desktop
~/.local/share/desktop-directories mystuff-menu.directory
Copying all necessary files to a "clean" account on another 32 bit machine running Ubuntu 10.04 LTS I get the desired result of
Code: Select all
Menu ("Applications" if Ubuntu)
MyStuff
trimtext
The only difference which I have been able to determine is that Ubuntu 10.04 is running xdg-desktop-menu version 1.0.1 while Mint Mate is using a newer version (1.0.2). Otherwise, the files (and insofar as I can make them, the accounts) are identical. A solution or additional things to try would be appreciated.
Thanks.