Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-01-2004, 03:13 PM   #1
Registered: Sep 2003
Distribution: redhat 9
Posts: 37

Rep: Reputation: 15
XFCE4 Menu.xml? could anyone post theirs?

could someone whos been able to get their entire menu.xml generated by menumaker post their menu.xml? whenever i try to compile menumaker on my system it jus spits out some error and exits. ps im running fedora with most of the packages installed.
thanks a lot. it doesnt matter if there arent some of the shortcuts.....ill edit them i jus need a good place to start. writing the whole thing myself gives me the creeps
Old 05-07-2004, 10:02 PM   #2
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Your post has sat too long waiting...

I don't, and haven't ever ran, run Red Hat products (by a fluke mostly)so I will post what my auto-generated Mandrake XFCE config shows (XFCE is an extra that you get after the fact with Mandy)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xfdesktop-menu [
	<!ENTITY menu2 SYSTEM "menu2.xml">

     Explanantion of XFce 4 menu file: 
     Here we will try to explain the format of the menu file. Look at the
     actual menu below for the real examples.

<!-- Obviously, this is how you make a comment ;-) -->


  + Everything is between exactly one pair of 
    <xfdesktop-menu></xfdesktop-menu> tags.

  + Applications:
    <app name="Name in menu" cmd="Command to run" term="no" visible="yes" />
    'term' determines if the program needs a terminal to run
    Only 'name' and 'cmd' are required.

  + Separators:

  + Submenus:
    <menu name="Name in menu" visible="yes"></menu>
    Only 'name' is required.
    Between the menu tags you can define more applications, separators and 

  + Titles
    <title name="Name in menu" />
    Creates an insensitive menu title
  + Including other files:
    Other files can be included by using an xml trick. This is a little bit
    First you have to define a so called entity in the file header. See above,
    where we define a 'menu2' entity to point to a "menu2.xml" file.
    Then you can use '&entityname;' anywhere in the menu file and it will be
    replaced with the contents of the file the entity points to.
    This can be useful for example if you make a script that generates a gnome
    menu and put it in a separate file.
    <title name="Desktop Menu" visible="yes" />
    <app name="Run Program..." cmd="xfrun4"/><separator/>&menu2;
    <app name="Terminal" cmd="xfterm4" />
    <app name="File Manager (xffm)" cmd="xffm"/>
    <app name="Web Browser" cmd="mozilla"/>
    <menu name="Settings" visible="yes">
        <app name="All Settings..." cmd="xfce-setting-show"/>
        <app name="Backdrop..." cmd="xfce-setting-show backdrop"/>
        <app name="Background" cmd="xfce-setting-show backdrop"/>
	<app name="Workspaces" cmd="xfce-setting-show workspaces"/>
	<app name="File manager (xffm)" cmd="xfce-setting-show xffm"/>
	<app name="User interface (gtk+)" cmd="xfce-setting-show ui"/>
	<app name="Icon box" cmd="xfce-setting-show xfibx"/>
        <app name="Mouse" cmd="xfce-setting-show mouse"/>
        <app name="Taskbar" cmd="xfce-setting-show taskbar"/>
	<app name="Keyboard" cmd="xfce-setting-show keyboard"/>
	<app name="Window manager" cmd="xfce-setting-show xfwm4"/>
	<app name="Margins" cmd="xfce-setting-show xfwm_margins"/>
	<app name="Panel" cmd="xfce-setting-show xfce"/>
    <app name="Help" cmd="xfhelp4"/>
    <!-- <separator/> -->
    <!-- Set visible to yes to use this item.
      This will exit the desktop manager. If you also put 
      'exec xfdesktop' at the end of your ~/.xinitrc, this menu item can be
      used to exit the X session.
    <builtin name="Quit" cmd="quit" visible="no"/>
    <!-- Example on how to include a file:
      1) declare an ENTITY in the DOCTYPE tag (see above)
      2) include entity in file: 
It seems well commented, so you should be able to use that for starters.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't create custom menu.xml for openbox LogicNZ Linux - Newbie 6 07-19-2008 10:37 AM
XFCE4 4.2.0 Shutdown Menu 2Gnu Slackware 1 02-07-2005 12:59 PM
xfce menu.xml where'd it go? davidschob Slackware 0 07-13-2004 09:00 AM
OpenBox menu.xml error Cmdr_K00n Linux - Newbie 1 06-22-2004 06:41 AM
XFCE4 menu question C8H10N4O2 Linux - Software 1 09-28-2003 02:57 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration