LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nautilus-actions adding new context menu (https://www.linuxquestions.org/questions/linux-software-2/nautilus-actions-adding-new-context-menu-738705/)

traigo 07-08-2009 03:29 PM

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

catkin 07-09-2009 08:34 AM

Hello triago :)

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

Best

Charles

catkin 07-09-2009 10:16 AM

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

traigo 07-09-2009 02:48 PM

Thanks, restarting nautilus fixed the problem. It shows up in the context menu now.


All times are GMT -5. The time now is 05:51 AM.