LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How to "Add to Panel..." on gnome-2.32.0 panel PROGRAMMATICALLY? (https://www.linuxquestions.org/questions/linux-desktop-74/how-to-add-to-panel-on-gnome-2-32-0-panel-programmatically-903382/)

ajaygarg 09-16-2011 09:44 AM

How to "Add to Panel..." on gnome-2.32.0 panel PROGRAMMATICALLY?
 
Hi all.

I know that the following procedure :

a. Right-click on gnome-panel.
b. Click "Add to Panel..."
c. Select the items of your choice

can be used to add panel-items.


But the above is via GUI interaction.
Any way that we can do this programmatically, or via scripting?


Looking forward to a reply.

Thanks and Regards,
Ajay

Ansikt 09-16-2011 10:29 AM

While I don't know the answer to this, I'd think that the answer lies somewhere within the FreeDesktop specification(http://www.freedesktop.org/wiki/Spec...ds%2Fmenu-spec), and in the Menu Definitions of Gnome (http://library.gnome.org/admin/syste...ure-13.html.en). Another suggestion may be to use ls -tA in your home folder (which lists file contents ordered by modification time) in conjunction with adding an item to the panel using the GUI tool, to find which file is edited by the system when you add a panel item.

Hope this helps!


All times are GMT -5. The time now is 11:18 PM.