Skip to content

Instantly share code, notes, and snippets.

@brunorozendo
Last active March 9, 2018 20:57
Show Gist options
  • Select an option

  • Save brunorozendo/b21228bf9b73bcf7c294a6f05a2d55d0 to your computer and use it in GitHub Desktop.

Select an option

Save brunorozendo/b21228bf9b73bcf7c294a6f05a2d55d0 to your computer and use it in GitHub Desktop.
Add submenu lxde

/etc/xdg/menus/lxde-applications.menu

	<!-- Development Tools -->
	<Menu>
		<Name>Development</Name>
		<Directory>lxde-development.directory</Directory>
		<Include>
			<And>
				<Category>Development</Category>
			</And>
			<Filename>emacs.desktop</Filename>
		</Include>
		<Menu>
			!-- our new sub-section name: -->
			<Name>Eclipse</Name>
			<Directory>eclipse.directory</Directory>
			<Include>
				<And><Category>Eclipses</Category></And>
			</Include>
		</Menu>
		<Menu>
			!-- our new sub-section name: -->
			<Name>Jetbrains</Name>
			<Directory>jetbrains.directory</Directory>
			<Include>
				<And><Category>Jetbrains</Category></And>
			</Include>
		</Menu>
		<Menu>
			!-- our new sub-section name: -->
			<Name>Database</Name>
			<Directory>database.directory</Directory>
			<Include>
				<And><Category>Database</Category></And>
			</Include>
		</Menu>					
	</Menu> <!-- End Development Tools -->

/home/bruno/.local/share/desktop-directories/eclipse.directory

[Desktop Entry]
Encoding=UTF-8
Name=Eclipses
Type=Directory
Icon=/opt/eclipses/eclipse-java/icon.xpm

/home/bruno/.local/share/desktop-directories/jetbrains.directory

[Desktop Entry]
Encoding=UTF-8
Name=Jetbrains
Type=Directory
Icon=/opt/jetbrains/idea-IU-173.4301.25/bin/idea.png
[Desktop Entry]
Name=Eclipse Java Oxygen
Exec=/opt/eclipses/eclipse-oxygen-jee/eclipse-oxygen-jee
MimeType=text/plain;
Terminal=false
Comment=Eclise Oxygen IDE Java
Type=Application
Icon=/opt/eclipses/eclipse-oxygen-jee/icon.xpm
Categories=Eclipses;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment