Write a script that adds (only if it does not exist) a custom GNOME
menu "My Custom Menu".
It would have the following structure:
My Custom Menu
Item 1
Sub-Item 1.1
Sub-Item 1.2
Item 2
Item 3
How can I populate menus using scripts? Is there something like
add-menu-to-gnome command, or some such. Thanks
--
Due to extreme spam originating from Google Groups, and their inattention
to spammers, I and many others block all articles originating
from Google Groups. If you want your postings to be seen by
more readers you will need to find a different means of
posting on Usenet.
http://improve-usenet.org/
> Here's what I would like to do:
>
> Write a script that adds (only if it does not exist) a custom GNOME menu
> "My Custom Menu".
>
> It would have the following structure:
>
> My Custom Menu
> Item 1
> Sub-Item 1.1
> Sub-Item 1.2
> Item 2
> Item 3
>
> How can I populate menus using scripts? Is there something like
> add-menu-to-gnome command, or some such. Thanks
That seems like a opportunity to learn the case statement
$ man bash
If you're using a desktop, you could use one of the menu editors, add a
custom menu or add a drawer to your panel, all containing your sub-items.
> Here's what I would like to do:
>
> Write a script that adds (only if it does not exist) a custom GNOME
> menu "My Custom Menu".
>
> It would have the following structure:
>
> My Custom Menu
> Item 1
> Sub-Item 1.1
> Sub-Item 1.2
> Item 2
> Item 3
>
> How can I populate menus using scripts? Is there something like
> add-menu-to-gnome command, or some such. Thanks
See <http://standards.freedesktop.org/menu-spec/latest/> for how menus
are defined.
Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------
I want to write a bash script to set up a GNOME menu. I do not want to
do it via GUI such as a menu editor. The reason is that the same menu
will be used by many people on many desktops, and it is dynamic by its
nature (the example I provided was a simplification).
You can write little guis that are called when certain parameters are
met in a script. I've only just started working with it and so far I'm
finding it quite useful.
--
Rob
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Frequent lock ups are a symptom of not enough memory but only in the way
that nosebleeds are a symptom of gunshot wounds to the head.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -