LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   XFCE4 Menu.xml? could anyone post theirs? (https://www.linuxquestions.org/questions/linux-software-2/xfce4-menu-xml-could-anyone-post-theirs-176738/)

nikd 05-01-2004 03:13 PM

XFCE4 Menu.xml? could anyone post theirs?
 
hey,
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 :p

vectordrake 05-07-2004 10:02 PM

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)
Code:

<?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:
    <separator/>

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

  + 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
    complicated.
    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.
   
-->
<xfdesktop-menu>
    <title name="Desktop Menu" visible="yes" />
    <separator/>
    <app name="Run Program..." cmd="xfrun4"/><separator/>&menu2;
    <separator/>
    <app name="Terminal" cmd="xfterm4" />
    <app name="File Manager (xffm)" cmd="xffm"/>
    <app name="Web Browser" cmd="mozilla"/>
    <separator/>
    <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"/>
-->
    </menu>
    <separator/>
    <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:
    -->
    <!--
    &menu2;
    -->
</xfdesktop-menu>

It seems well commented, so you should be able to use that for starters.


All times are GMT -5. The time now is 06:47 AM.