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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.