User avatar
D.E.L.B.
Posts: 92
Joined: Sat Jun 09, 2012 7:16 pm
Location: Wales, UK
Contact: Website

MagPi Help - lxde-applications.menu file

Tue Sep 04, 2012 2:40 pm

What's wrong with my lxde-applications.menu file?

Here it is, in the Mag Pi book on page 20 of Issue 4, there is a tutorial that tells you how to add an item to the menu on LXDE, however I have tried to do this, but the menu disappears and I am not sure how to fix it.

Here is my lxde-applications.menu file:

Code: Select all

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd"> <Menu>
	<Name>Applications</Name>
	<Directory>lxde-menu-applications.directory</Directory>
	<!-- Read standard .directory and .desktop file locations -->
	<DefaultAppDirs/>
	<DefaultDirectoryDirs/>
	<!-- Read in overrides and child menus from applications-merged/ 
-->
	<DefaultMergeDirs/>

<! -- MagPi submenu -->
<Menu>
<Name>The MagPi</Name>
<Directory>lxde-
magpi.directory</Directory>
<Include>
<Filename>gpicview.desktop</Filename>
</Include>
</Menu> 
<! -- End The MagPi -->

	<!-- Accessories submenu -->
	<Menu>
		<Name>Accessories</Name>
		<Directory>lxde-utility.directory</Directory>
		<Include>
			<And>
				<Category>Utility</Category>
	<!-- Accessibility spec must have either the Utility or Settings
			 category, and we display an accessibility 
submenu already for
			 the ones that do not have Settings, so don't 
display accessibility
			 applications here -->
				<Not><Category>Accessibility</Category></Not>
				<Not><Category>System</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Accessories -->
	<!-- Accessibility submenu -->
	<Menu>
		<Name>Universal Access</Name>
		<Directory>lxde-utility-accessibility.directory</Directory>
		<Include>
			<And>
				<Category>Accessibility</Category>
				<Not><Category>Settings</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Accessibility -->
	<!-- Development Tools -->
	<Menu>
		<Name>Development</Name>
		<Directory>lxde-development.directory</Directory>
		<Include>
			<And>
				<Category>Development</Category>
			</And>
			<Filename>emacs.desktop</Filename>
		</Include>
	</Menu> <!-- End Development Tools -->
	<!-- Education -->
	<Menu>
		<Name>Education</Name>
		<Directory>lxde-education.directory</Directory>
		<Include>
			<And>
				<Category>Education</Category>
			</And>
		</Include>
	</Menu> <!-- End Education -->
	<!-- Games -->
	<Menu>
		<Name>Games</Name>
		<Directory>lxde-game.directory</Directory>
		<Include>
			<And>
				<Category>Game</Category>
			</And>
		</Include>
	</Menu> <!-- End Games -->
	<!-- Graphics -->
	<Menu>
		<Name>Graphics</Name>
		<Directory>lxde-graphics.directory</Directory>
		<Include>
			<And>
				<Category>Graphics</Category>
				<Not><Category>Utility</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Graphics -->
	<!-- Internet -->
	<Menu>
		<Name>Internet</Name>
		<Directory>lxde-network.directory</Directory>
		<Include>
			<And>
				<Category>Network</Category>
			</And>
		</Include>
	</Menu> <!-- End Internet -->
	<!-- Multimedia -->
	<Menu>
		<Name>Multimedia</Name>
		<Directory>lxde-audio-video.directory</Directory>
		<Include>
			<And>
				<Category>AudioVideo</Category>
			</And>
		</Include>
	</Menu> <!-- End Multimedia -->
	<!-- Office -->
	<Menu>
		<Name>Office</Name>
		<Directory>lxde-office.directory</Directory>
		<Include>
			<And>
				<Category>Office</Category>
			</And>
		</Include>
	</Menu> <!-- End Office -->
	<!-- System Tools-->
	<Menu>
		<Name>System</Name>
		<Directory>lxde-system-tools.directory</Directory>
		<Include>
			<And>
				<Category>System</Category>
				<Not><Category>Settings</Category></Not>
				<Not><Category>PackageManager</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End System Tools -->
	<!-- Other -->
	<Menu>
		<Name>Other</Name>
		<Directory>lxde-other.directory</Directory>
		<OnlyUnallocated/>
		<Include>
			<And>
				<Not><Category>Core</Category></Not>
				<Not><Category>Settings</Category></Not>
				<Not><Category>Screensaver</Category></Not>
			</And>
		</Include>
		</Menu> <!-- End Other -->
	<Menu>
		<Name>DesktopSettings</Name>
		<Directory>lxde-settings.directory</Directory>
		<OnlyUnallocated/>
		<Include>
			<Or>
				<Category>Settings</Category>
				<Category>PackageManager</Category>
				<Category>System</Category>
			</Or>
		</Include>
		<Layout>
			<Merge type="menus"/>
			<Merge type="files"/>
		</Layout>
	</Menu> <!-- End Settings -->
	<Layout>
		<Merge type="files"/>
		<Merge type="menus"/>
		<Separator/>
		<Menuname>DesktopSettings</Menuname>
	</Layout> </Menu> <!-- End Applications -->

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: MagPi Help - lxde-applications.menu file

Tue Sep 04, 2012 2:48 pm

For one thing, it looks like this line has been broken into two lines...

<Directory>lxde-
magpi.directory</Directory>

User avatar
D.E.L.B.
Posts: 92
Joined: Sat Jun 09, 2012 7:16 pm
Location: Wales, UK
Contact: Website

Re: MagPi Help - lxde-applications.menu file

Tue Sep 04, 2012 10:21 pm

I tried that, but it didn't seem to budge:

Code: Select all

<! -- MagPi submenu -->
<Menu>
<Name>The MagPi</Name>
<Directory>lxde-magpi.directory</Directory>
<Include>
<Filename>gpicview.desktop</Filename>
</Include>
</Menu>
<! -- End The MagPi -->

User avatar
D.E.L.B.
Posts: 92
Joined: Sat Jun 09, 2012 7:16 pm
Location: Wales, UK
Contact: Website

Re: MagPi Help - lxde-applications.menu file

Wed Sep 05, 2012 9:53 pm

Bump. :). I tried potching about with it but no luck.

User avatar
D.E.L.B.
Posts: 92
Joined: Sat Jun 09, 2012 7:16 pm
Location: Wales, UK
Contact: Website

Re: MagPi Help - lxde-applications.menu file

Sat Sep 08, 2012 1:23 am

Anyone, no? I want to succeed with this before I move onto other things.

User avatar
tzj
Posts: 302
Joined: Thu Jan 05, 2012 3:09 pm
Location: Barnsley, SY, UK

Re: MagPi Help - lxde-applications.menu file

Sat Sep 22, 2012 2:52 am

email us at: [email protected]

ask for jaseman as it's his article, he should help you in the right direction.
http://www.themagpi.com <---- Checkout the MagPi
(The MagPi - Co-Founder)

Thor_GOT
Posts: 1
Joined: Sat May 25, 2013 8:24 pm

Re: MagPi Help - lxde-applications.menu file

Tue Jun 11, 2013 7:46 pm

I'm trying this one too. Same problem...my menu disappears. I think indentation is important. I'm going to try following the pattern in the file.

Return to “Troubleshooting”