once again - customizing the Xfce menu

Brian J. Tarricone bjt23 at cornell.edu
Wed May 20 01:38:01 CEST 2009


Markus Hoenicka wrote:
> Hi,
> 
> I've perused the tutorial about customizing the Xfce menu at
> 
> http://wiki.xfce.org/howto/customize-menu
> 
> Adding some custom programs worked as advertized. However, I can't
> seem to figure out how to add a new submenu and items therein. Could
> anyone please fill me in?
> 
> I used to have a "Folders" submenu in my 4.4 menu which turned out to
> be extremely convenient - I had links to the most often used folders
> in there, each of which would open a file manager window showing the
> corresponding folder. Being used to that, I'd like to have something
> comparable in 4.6 as well.

Well, the default menu provides a clue, e.g.:

<Menu>
     <Name>Development</Name>
     <Directory>xfce-development.directory</Directory>
     <Include>
         <Category>Development</Category>
     </Include>
</Menu>

You'll want to create your own fake category, say 'X-Folders' (by 
convention, nonstandard categories are prefixed with 'X-'), and then use 
that category on the Categories= line of your .desktop files that launch 
your file manager with the correct folder (which you can place in 
$HOME/.local/share/applications/).

You can omit the <Directory> element in there, or provide a file that 
you can create yourself that specifies what icon to use (check out the 
files in /usr/share/desktop-directories/ for samples; you should be able 
to place your new file in $HOME/.local/share/desktop-directories/).

If you figure all this out, it would be great if you could add your 
experiences to the wiki so others can benefit.

	-brian



More information about the Xfce mailing list