UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Does anyone know how I can add a menu item in Gnome from the right mouse click operation inside nautilus.
In other words, I'm inside nautilus. Select a file of type "mpeg". Right click it. I want a menu item to appear with "Convert to DVD..". Can I do this, how? Also, how do I attach a script to the menu item.
Just create a script (or a link to a script) in ~/.gnome2/nautilus-scripts/ and it will appear in the right-click scripts sub-menu.
Thanks what arguments are passed into a script this way?
What I REALLY wanted was a context sensitive right-click menu with discrete individual options rather than a set of option off a "scripts" tree. In other words, if i right click on an AVI file then I can select "Convert" from the menu. If I right click on a TXT file then "Convert" does not appear.
The script is called with the name(s) of the selected files/folders. The current working directory (pwd) that the script is invoked from will be the one the script executes from.
Unfortunately, you can't create a context sensitive menu, but you can group scripts in subdirectories to separate functions (which will appear as sub-menus in the the scripts menu).
The script is called with the name(s) of the selected files/folders. The current working directory (pwd) that the script is invoked from will be the one the script executes from.
Unfortunately, you can't create a context sensitive menu, but you can group scripts in subdirectories to separate functions (which will appear as sub-menus in the the scripts menu).
The nautilus scripts function appears to be a little picky about the interpreter. You can get around the problem by moving the script to your ~/bin/ directory, then creating a symlink to it in the ~/.gnome2/nautilus-scripts/ directory. For example:
cd ~/.gnome2/nautilus-scripts/
mv Convert ~/bin/
ln -s ~/bin/Convert ./
The nautilus scripts function appears to be a little picky about the interpreter. You can get around the problem by moving the script to your ~/bin/ directory, then creating a symlink to it in the ~/.gnome2/nautilus-scripts/ directory. For example:
cd ~/.gnome2/nautilus-scripts/
mv Convert ~/bin/
ln -s ~/bin/Convert ./
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.