[xubuntu-users] editing applications menu?

Kiyotaka Nemoto kiyotaka at nemotos.net
Fri Oct 7 12:46:02 UTC 2016


Hi Ullrich,

I don't know GUI way to achieve what you want, but if you don't mind
modifying menu file by hand, you'll get.

Try the following

cd /etc/xdg/xdg-xubuntu/menus
sudo cp xfce-applications.menu xfce-applications.menu.orig   # Backup your
original file
sudo mousepad xfce-applications.menu



Here you see the following lines in lines 22-26;

   <Layout>
        <Filename>exo-web-browser.desktop</Filename>
        <Filename>exo-mail-reader.desktop</Filename>
        <Separator/>
        <Filename>xfce-settings-manager.desktop</Filename>

This defines how items are listed in the top menu.
Now you don't want web-browser and mail-reader on top, so delete the two.
If you don't need separator, you can delete it too.

So now it should look like the following;

   <Layout>
        <Filename>xfce-settings-manager.desktop</Filename>


One more thing. Jump to the lines around 112 and find the following;

       <Name>Network</Name>
        <Directory>xfce-network.directory</Directory>
        <Include>
            <Category>Network</Category>
        </Include>
        <Exclude>
            <Or>
                <Filename>exo-mail-reader.desktop</Filename>
                <Filename>exo-web-browser.desktop</Filename>
            </Or>
        </Exclude>
    </Menu>


This decides what should be displayed in "Internet" menu.
Here we see that mail-reader and web-browser are excluded from the menu.
So delete these lines. (from <Exclude> to </Exclude>

So it should be like this;

       <Name>Network</Name>
        <Directory>xfce-network.directory</Directory>
        <Include>
            <Category>Network</Category>
        </Include>
    </Menu>


Now right click and see the menu. You should see these icons disappear in
top, but appear in Internet menu.

Hope this helps,

Kiyotaka



2016-10-07 16:05 GMT+09:00 Ulli Horlacher <framstag at rus.uni-stuttgart.de>:

> On Wed 2016-10-05 (11:19), fred roller wrote:
>
> > however, choose whether the items show up in the menu by turning ON/OFF
> the
> > "Hide from Menu" option on the individual items in menulibre.     HTH.
>
> This removes ALL appearances of this item in all directories.
> I would like just to remove "Mail Reader" and "Web Browser" from the main
> directory, but keep them in "Internet" directory.
>
> This seems not possible?
>
>
> --
> Ullrich Horlacher              Server und Virtualisierung
> Rechenzentrum TIK
> Universitaet Stuttgart         E-Mail: horlacher at tik.uni-stuttgart.de
> Allmandring 30a                Tel:    ++49-711-68565868
> 70569 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
> REF:<CAN4K06v+fRfw5vOz58Mmdg74G4Qxgvdzv=R6aJ5L355N1o8EgA at mail.gmail.com>
>
> --
> xubuntu-users mailing list
> xubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/xubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20161007/86068c80/attachment.html>


More information about the xubuntu-users mailing list