Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to know whether there is any way for adding the Applcaition shortcut to the panel through command line.
for example : I want to add the mozilla browser icon or shorcut ( what ever it may be ) to the panel through commad line. Is it possible . If so HOW ???
One way is to create the panel icon file through command line interface and restart gui.
Just check the similar panel shortcut files available in the users home directory.
In redhat
~user/.gnome/panel.d/
This dir may be different in different distros.
Yes it is there in /root/.gnome2 but panel2.d folder is having all the shortcut icons present in it. But what is the file which is effecting this folder, that is from where the information is beeing passed to add the shortcut icon to this panel.
Now you try to create shortcut in the panel normally.[Right-clink on the panel and create a shortcut with your name]
See if a new file is ccreated into panel2.d dir.
Take this file as a reference and try creating a similar file in command line interface.[Copy,paste,modify]
Hope that should work.
The dir panel2.d is having only the icons present in it. How can I get access to the application shortcut. can u give me a sample to the script please.
You will have to create a similar file like this.
Also you will have to put an entry in the confif file .
In my system the config file is
/home/user/.gnome/panel.d/default/Applet_Config
And the launcher dir is in
/home/user/.gnome/panel.d/default/launchers
Just create and delete a shortcut or two , observe the dir and config file and u will get the idea.
Ya I found the Launchers dir and this is the place where all my shortcut icons are present. I dint find any file as you told in this directory. /root/.gnome2/panel2.d/default/launchers -- Here i have the shorcut icons only..
Still I will search for the file. If u have idea about Debian system where it is exactly locating then please tell me...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.