LinuxQuestions.org
Review your favorite Linux distribution.
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 07-08-2009, 03:29 PM   #1
traigo
Member
 
Registered: Nov 2008
Distribution: Ubuntu 9.10
Posts: 41

Rep: Reputation: 15
Nautilus-actions adding new context menu


I followed this article to setup a new context menu:
http://www.linux.com/archive/feature/119603

I created a script that I want to add to the context menu for flv files to extract the audio as an mp3. I did chmod +x on the script.
Code:
#!/bin/sh

F=`echo $2 | sed -e "s/^\(.*\)\.flv$/\1\.mp3/g"`

mplayer -dumpaudio -dumpfile /media/bfd/audio/$F $1
I installed nautilus-actions and setup a new one pointing to the saved script with params %M %m. I changed it to *.flv filenames (not matching case), only for single files and local files. The context menu does not show up for flv files though.

Any ideas?

I'm on Ubuntu 8.04 amd64 with Nautilus 2.22.5.1

Thanks,
Traigo
 
Old 07-09-2009, 08:34 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,533
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hello triago

Edit: Oops! Misunderstood your post. Reply was irrelevant.

Best

Charles

Last edited by catkin; 07-09-2009 at 08:38 AM.
 
Old 07-09-2009, 10:16 AM   #3
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,533
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hello triago

Sorry about the false start.

I've just tried reproducing your problem on 8.04.2 with nautilus 2.22.5.1 and nautilus-actions 1.4.1-1ubuntu1.

I don't think the script itself or what is passed on the command line are significant -- I configured nautilus-actions with a non-existent script and the entry still showed in the context menu for an empty file called a.flv

Have you tried restarting nautilus? It wasn't necessary when I tried reproducing your problem but it did solve a couple of problems of nautilus-actions configurations not taking effect in my initial usage.

Best

Charles
 
Old 07-09-2009, 02:48 PM   #4
traigo
Member
 
Registered: Nov 2008
Distribution: Ubuntu 9.10
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks, restarting nautilus fixed the problem. It shows up in the context menu now.
 
  


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
Add Logout to Gnome/Nautilus Context Menu Linville79 Linux - Desktop 1 10-23-2008 10:40 AM
LXer: Power context menus for Nautilus LXer Syndicated Linux News 0 10-22-2007 09:10 AM
LXer: Extending Nautilus context menus with Nautilus-actions LXer Syndicated Linux News 0 10-22-2007 05:30 AM
how do i add context menu item in gnome/nautilus. keratos Ubuntu 7 06-03-2007 10:48 AM
How to perform root actions in Nautilus? therut Linux - Newbie 2 08-19-2003 07:20 AM


All times are GMT -5. The time now is 05:19 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 Google+: linuxquestions
Open Source Consulting | Domain Registration