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.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Linux Resources > Linux Tutorials, HOWTO's & Reference Material > Editing the Menu on Enlightenment DR16

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

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
 
Thread Tools Display Modes
Old 12-27-2004   #1 (permalink)
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

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:42 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2