Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: How to edit Natilus right context menu?

  1. #11
    Join Date
    Feb 2009
    Location
    /earth/india/mumbai
    Beans
    599
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to edit Natilus right context menu?

    Hi,did you get the file that stores the menu items for Nautilus context menu??

    Vote for my Idea
    ~~~Open-source Software and Patience go hand in hand~~~

  2. #12
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Wink Re: How to edit Natilus right context menu?

    Hello friend,

    I got the answer and thanks for your reply.
    Controlling complexity is the essence of computer programming. - Brian

  3. #13
    Join Date
    Feb 2009
    Location
    /earth/india/mumbai
    Beans
    599
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to edit Natilus right context menu?

    Quote Originally Posted by etdsbastar View Post
    Hello friend,

    I got the answer and thanks for your reply.
    Could you pls share the solution with forum??

    Vote for my Idea
    ~~~Open-source Software and Patience go hand in hand~~~

  4. #14
    Join Date
    Feb 2011
    Beans
    4

    Re: How to edit Natilus right context menu?

    Im Struggling to find this myself...

  5. #15
    Join Date
    Mar 2011
    Beans
    8

    Re: How to edit Natilus right context menu?

    UBUNTU 10.04 / FEDORA 13
    I know it's a little late in the game, but this is a thread that I came across during my search for "How to".
    Forget nautilus-actions for customizing built in menu selections. Works great for creating new ones though.
    Ok, so here it is,
    You're gonna have to get a little dirty in a .xml file

    First things first. If you're gonna make changes to a system file it is best to make a backup of the file before you get started, and you must be root. I like to work from the directory where the project is so let's get started by changing to that directory.

    cd /usr/share/nautilus/ui

    Now let's get to work.

    sudo cp nautilus-directory-view-ui.xml nautilus-directory-view-ui.xml.bak

    Now use your editor of choice e.g. (vi,nano, or a gui like gedit) Me, I like nano to do my bidding.

    nano nautilus-directory-view-ui.xml

    Here is a sample block of xml code from my system after the adjustment. I figure the easiest way to edit the file without deleting anything like I read in another post is to simply comment out the crap that you don't want.
    Comments in xml must be preceded by <!-- and ended with -->
    With that being said take notice at the beginning and end of this block where I placed the comment indicators. On this block I started at the "placeholder" and ended on the "placeholder", but it is not limited to commenting there. You can pick and choose "menuitem", too. By doing it this way with the comments it is also easy to just go back and un-comment what you commented to undo changes verses the .bak approach mentioned above which is more secure.

    ...............<!--placeholder name="Clipboard Actions">
    ........................<menuitem name="Cut" action="
    ........................<menuitem name="Copy" action="Copy"/>
    ........................<menuitem name="Paste" action="Paste"/>
    ................</placeholder-->
    .................<!--placeholder name="Select Items">
    .................<menuitem name="Select All" action="Select All"/>
    .................<menuitem name="Select Pattern" action="Select Pattern"/>
    .................<menuitem name="Invert Selection" action="Invert Selection"/>
    .................</placeholder-->
    ................<placeholder name="File Items Placeholder">
    ........................<!--menuitem name="Duplicate" action="Duplicate"/-->
    ........................<!--menuitem name="Create Link" action="Create Link"/-->
    ........................<menuitem name="Rename" action="Rename"/>
    ........................<!--menu action="CopyToMenu">
    ................................<menuitem name="Copy to next pane" action="Copy to next pane"/>
    ................................<menuitem name="Copy to Home" action="Copy to Home"/>
    ................................<menuitem name="Copy to Desktop" action="Copy to Desktop"/>
    ........................</menu>
    ........................<menu action="MoveToMenu">
    ................................<menuitem name="Move to next pane" action="Move to next pane"/>
    ................................<menuitem name="Copy to Home" action="Move to Home"/>
    ................................<menuitem name="Copy to Desktop" action="Move to Desktop"/>
    .........................</menu-->
    ....................</placeholder>
    .................<!--placeholder name="Dangerous File Items Placeholder">
    ........................<menuitem name="Trash" action="Trash"/>
    ........................<menuitem name="Delete" action="Delete"/>
    ........................<menuitem name="Restore From Trash" action="Restore From Trash"/>
    ....................</placeholder-->

    Run this command to restart nautilus if you feel so inclined.

    nautilus -q

    COMMAND SUMMARY

    cd /usr/share/nautilus/ui
    sudo cp nautilus-directory-view-ui.xml nautilus-directory-view-ui.xml.bak
    nano nautilus-directory-view-ui.xml
    nautilus -q


    So, now if you make a boo-boo, you can always run this next set of commands from within the /usr/share/nautilus/ui directory and then start the process over. That is assuming you went with the file backup.

    rm -rf nautilus-directory-view-ui.xml
    mv nautilus-directory-view-ui.xml.bak nautilus-directory-view-ui.xml


    To add custom commands back to the context menus, you can install;

    apt-get install nautilus-actions via ubuntu
    yum install nautilus-actions via fedora

    Here is a link to nautilus-actions website tutorials. ENJOY!
    http://www.grumz.net/?q=taxonomy/ter...7e4d8147c0e42c

    NOTE------> Is it just me or what? But could we get the spelling right for the title of the thread so search engines can find this link more effectively.
    Nautilus not Natilus

  6. #16
    Join Date
    Feb 2009
    Location
    /earth/india/mumbai
    Beans
    599
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to edit Natilus right context menu?

    What if update happens???Most of the updates involves changes to nautilus,in which case the said procedure has to be repeated again..
    or the user has to exclude the nautilus update packages during system/kernel upgrades..

    Vote for my Idea
    ~~~Open-source Software and Patience go hand in hand~~~

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •