LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 02-25-2009, 08:17 PM   #1
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool Help in context menu ..?


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 ..?
 
Old 02-25-2009, 09:13 PM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,151

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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.)
 
Old 02-26-2009, 01:10 AM   #3
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33
Wink

Quote:
Originally Posted by PTrenholme View Post
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 ..
 
Old 02-26-2009, 11:10 AM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,151

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
right-click context menu and shortcut for it VictorWarner Ubuntu 2 10-23-2008 06:22 AM
Edit KDE Context Menu cratos Linux - Software 1 08-22-2006 06:03 PM
TreeView Context Menu Kenji Miyamoto Programming 0 04-18-2006 11:14 PM
Create new from context menu johnnydangerous Fedora 3 02-07-2005 04:29 PM
Context Menu keyboard shortcut GrayGh0st Linux - General 0 06-10-2003 11:01 AM


All times are GMT -5. The time now is 08:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration