Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 had written a small shell script which can format usb drive , (default vfat) , but i need it to get started through context menu .
Is there any way i can do it ..?
Well, probably. But could you provide a little more information about the context in which you are making a reference to a "context menu?" Are you, perhaps, referring to the GNOME "Applications" menu? Or do you just want to have a button for the application on the GNOME panel? (The one that, by default, is across the top of the screen although you may have moved it.) Or, you might be using some other window manager (KDE, etc.).
If you want to add it to the GNOME "Applications" menu, install the menu editor and edit the menu. If you just want to add something the the "top" panel, right click on it and select the appropriate "Add a program" tool. And so on for the other desktops.
But without more context to your question, more detailed answers are hard.
(Sorry about the "context" comments, but the pun was irresistible.)
Well, probably. But could you provide a little more information about the context in which you are making a reference to a "context menu?" Are you, perhaps, referring to the GNOME "Applications" menu? Or do you just want to have a button for the application on the GNOME panel? (The one that, by default, is across the top of the screen although you may have moved it.) Or, you might be using some other window manager (KDE, etc.).
If you want to add it to the GNOME "Applications" menu, install the menu editor and edit the menu. If you just want to add something the the "top" panel, right click on it and select the appropriate "Add a program" tool. And so on for the other desktops.
But without more context to your question, more detailed answers are hard.
(Sorry about the "context" comments, but the pun was irresistible.)
Yea , normally other OS , like Windows had an option when rightclicked any of the drive , it will show in that menu , "Format"
Understood right .. ANy way thanks for the info u had given ..
Ah, I see. What you're looking for is the pop-up menu definitions. For that you find me at a loss - I never permit icons on my desktop, so I've never looked for such menus.
If I understand the freedesktop stuff correctly, you need to locate the correct <something>.desktop file, get to source code for the referenced application, and modify it to do what you want. But, as I said, I've never bothered to use desktop icons, so, obviously, I've never tried to modify them. (If you do have an icon on your desktop, a ls ~/Desktop should show you the name of the .desktop file being used.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.