xdg-menu and additional categories support.

michel dominique dominique.michel at vtxnet.ch
Sat Sep 14 14:32:21 PDT 2013






On sam 14/09/13 22:54 , michel dominique <dominique.michel at vtxnet.ch> wrote:

> As examples, the additional categories for Audio are HamRadio; Midi; 
> Mixer; Sequencer, Tuner; AudioVideoEditing; Player; Recorder
> 
> Is it possible to combine all that to get the an Audio menu with automatic
> support for these additional categories, and how?

I find my way out by modifying the xfce menu file:

    <Menu>
        <Name>Multimedia</Name>
        <!-- Directory>xfce-multimedia.directory</Directory -->
	<Menu>
	    <Name>Audio</Name>
    	    <Include>
        	<Category>Audio</Category>
    	    </Include>
	    <Exclude>
		<Category>HamRadio</Category>
		<Category>Midi</Category>
		<Category>Mixer</Category>
		<Category>Sequencer</Category>
		<Category>AudioVideoEditing</Category>
		<Category>Player</Category>
		<Category>Recorder</Category>
	    </Exclude>
	    <Menu>
		<Name>HamRadio</Name>
    		<Include>
    		    <Category>HamRadio</Category>
    		</Include>
	    </Menu>
	    <Menu>
		<Name>Midi</Name>
    		<Include>
    		    <Category>Midi</Category>
    		</Include>
	    </Menu>
	    <Menu>
		<Name>Mixer</Name>
    		<Include>
    		    <Category>Mixer</Category>
    		</Include>
	    </Menu>
	    <Menu>
		<Name>Sequencer</Name>
    		<Include>
    		    <Category>Sequencer</Category>
    		</Include>
	    </Menu>
	    <Menu>
		<Name>AudioVideoEditing</Name>
    		<Include>
    		    <Category>AudioVideoEditing</Category>
    		</Include>
	    </Menu>
	    <Menu>
		<Name>Player</Name>
    		<Include>
    		    <Category>Player</Category>
    		</Include>
	    </Menu>
	    <Menu>
		<Name>Recorder</Name>
    		<Include>
    		    <Category>Recorder</Category>
    		</Include>
	    </Menu>
	</Menu>
	<Menu>
	    <Name>Video</Name>
	    <Include>
                <Category>Video</Category>
    	    </Include>
	</Menu>
	<Menu>
	    <Name>AudioVideo></Name>
	    <Include>
                <Category>AudioVideo</Category>
	    </Include>
	</Menu>
    </Menu>

Any comment will be appreciated.

> 
> Dominique
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg [1]
> 
> 
> 
> Links:
> ------
> [1]
> http://awebmail.vtx.ch/parse.php?redirect=http://lists.freedesktop.org/mail
> man/listinfo/xdg
> 


More information about the xdg mailing list