Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material
Reload this Page Editing the Menu on Enlightenment DR16
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Tutorials, HOWTO's & Reference Material A useful collection of tutorials, guides and reviews compiled here for easy reference purposes.

 
 
Thread Tools Display Modes
Old 12-27-2004   #1 (permalink)
lakerdonald
Linux Guru
 
lakerdonald's Avatar
 
Join Date: Jun 2004
Location: St. Petersburg, FL
Posts: 5,039
Editing the Menu on Enlightenment DR16

Customizing your menu on Enlightenment DR16 is a little different from other Window Managers. Unlike GNOME or KDE, there is no real built-in menu editor. You have to edit a file manually, in a fashion similar to Fluxbox. However, unlike with fluxbox, each Root Submenu has its own directory in ~/.enlightenment/
The default menu directories are:
Code:
menus_KDE, menus_GNOME, menus_Other, menus_Epplets
or something like that (this may vary). Then there should be a file called
Code:
file.menu
.
Inside file.menu, there should be lines similar to:
Code:
"KDE" "" menu "/home/username/.enlightenment/menus_KDE/index.menu"
In order to add a new menu, you have to do two things:
1)Create a new menu directory
2)Add an entry in ~/.enlightenment/file.menu

Now look inside the index.menu file for one of your menus that is populated. For example:
Code:
less ~/.enlightenment/menus_KDE/index.menu
As you can see, an index.menu file takes the form of:
Code:
"Menu Title"
"Submenu 1" "" menu "/path/to/menu1/index.menu"
"Submenu 2" "" menu "/path/to/menu2/index.menu"
"Program 1" "/path/to/icon/file" exec "/command/to/execute"
"Program 2" NULL exec "/command/to/execute"
Note that you don't need to have an icon for all of your programs. If you don't have an icon for that particular program, then just type NULL, without quotes.
So here is the full process for adding a new menu called "Utilities", containing the submenus "Filemanagers" and "Terminals":

Code:
mkdir /home/joe/.enlightenment/menus_Utilities
mkdir /home/joe/.enlightenment/menus_Utilities/filemanagers/
mkdir /home/joe/.enlightenment/menus_Utilities/terminals/
nano -w /home/joe/.enlightenment/menus_Utilities/filemanagers/index.menu
#inside of nano/vim/etc.#
"Filemanagers"
"Emelfm" NULL exec "/usr/bin/emelfm"
"Rox" NULL exec "/usr/share/rox/rox"
"Gentoo" NULL exec "/home/joe/gentoo-1.1/gentoo"
#save, and exit#
nano -w /home/joe/.enlightenment/menus_Utilities/terminals/index.menu
#inside of nano, vim, etc.#
"Terminals"
"Eterm" NULL exec "eterm -t MySpiffE"
"Aterm" NULL exec "/usr/bin/aterm"
"Xterm" NULL exec "xterm"
#save, and exit#
nano -w /home/joe/.enlightenment/menus_Utilities/index.menu
#inside of nano, vim, or whatever text-editor you choose#
"Utilities"
"Filemanagers" "" menu "/home/joe/.enlightenment/menus_Utilities/filemanagers/index.menu"
"Terminals" "" menu "/home/joe/.enlightenment/menus_Utilities/terminals/index.menu"
#save, exit#
Then restart enlightenment, and everything should be fine and dandy.
-lakerdonald
__________________
the lost art of found sound
lakerdonald is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 05:48 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0