LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2009, 10:05 AM   #1
al.lmco
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Rep: Reputation: 0
How do I modify the JDS desktop right-click menu?


I am trying to figure out which file is it to modify the Solaris 10 JDS desktop right-click menu. I have been able to modify the menu from the Launch button but having trouble locating the files for the right-click menu from the desktop. Has anyone done this before?

Thanks,
Al
 
Old 09-30-2009, 09:16 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
Create the directory ~/.gnome2/nautilus-scripts and put there scripts that will launch the application you want to add to the right click menu. They will appear in the script sub-menu.
 
Old 10-01-2009, 10:10 AM   #3
al.lmco
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
What if I didn't want the right-click menu to pop-up? I want to deny access to the open terminal window from the desktop right-click menu to regular users. Either remove the selection or remove the menu all together.
 
Old 10-01-2009, 10:53 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
Here is how to do it with Gnome on OpenSolaris
Code:
mv /usr/lib/nautilus/extensions-2.0/libnautilus-open-terminal.so /var/tmp
With Solaris 10, the menu is defined in /usr/share/gnome-2.0/ui/nautilus-desktop-icon-view-ui.xml so editing it should do the trick.
 
Old 10-05-2009, 01:28 PM   #5
al.lmco
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
jlliagre,

Thank you for helping me out! I was able to modify and remove "Open Terminal" from the right-click menu but now I would like to add a menu selection. A program that was installed such as Open Office or some other program. I tried to mimic other lines in the nautilus-desktop-icon-view-ui.xml file but had no luck. Here is an example of what I put.

<cmd name="/full/path/to/program"
-label="Program N_ame"
-tip="Opens the Program"/>


<placeholder name="New Window Items">
<placeholder name="/full/path/to/program" verb="/full/path/to/program"
</placeholder>

After logging off and logging back in I get an Error message.
"The Application "nautilus" has quit unexpectedly. You can inform the developers of what happened to help them fix it. Or you can restart the application right now."

Is there some other file that needs to be modified in order to add an program to the desktop right-click menu?

Thanks Again for all the help.
 
Old 10-05-2009, 03:17 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
As far as I know, the supported way to add custom entries is through the nautilus script directory. The name attribute in the cmd tag is obviously not something designed to contain a path to a command.
 
Old 10-06-2009, 12:32 PM   #7
al.lmco
LQ Newbie
 
Registered: Jul 2008
Posts: 13

Original Poster
Rep: Reputation: 0
Is there a global directory to put the nautilus script instead of ~/.gnome2/nautilus-scripts. If I could avoid having to put the nautilus scripts in each users home dir, I will just to make things easier and I can put the nautilus scripts in one dir for all users to see.

Thanks,
Al
 
Old 10-07-2009, 05:04 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OEL
Posts: 9,165

Rep: Reputation: 243Reputation: 243Reputation: 243
I don't think such a shared directory exists.
You might ask this to a gnome related forum like http://www.linuxquestions.org/questi...ux-desktop-74/ as this question is not really Solaris specific.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit Desktop Menu (right-click on desktop) checkmate3001 Debian 1 08-26-2008 09:35 AM
left click on kubuntu desktop (on laptop) brings up middle click menu =S darksmiley Ubuntu 2 06-14-2008 05:37 PM
gnome-desktop: add to right-click context menu? jhwilliams Linux - Software 1 07-28-2007 06:13 AM
KDE Gnome Desktop Menu Edits (right click on desktop) jdier Linux - Software 11 08-03-2006 05:05 AM
Gnome right click desktop menu (edit??) InEeDhElPlInUx Linux - Software 4 02-12-2006 07:19 PM


All times are GMT -5. The time now is 08:07 PM.

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
Open Source Consulting | Domain Registration