PDA

View Full Version : Help with nautilusscript!



olskar
February 23rd, 2007, 05:29 PM
Hi!
I would like a nautilusscript that works like this:
I rightclick on a cabfile, click on "Install to device" and after that I want this to be run:

synce-install-cab thefileiclicked.cab

Can someone help me do this?

iraiscoming223
February 25th, 2007, 07:26 PM
#!/bin/bash
synce-install-cab "$*"

Assuming you're using GNOME:
Save it in the ~/.gnome2/nautilus-script/ folder and then give the execute privilege.
Then you will find it in the righ-click menu in the "Script" section.

olskar
March 8th, 2007, 06:46 PM
It doesnt work, It just works if i write it in the terminal..Is there a way to solve that?

lnostdal
March 8th, 2007, 06:49 PM
have you done
chmod +x thescript ..?

..have you restarted nautilus? do ..
killall -KILL nautilus ..a couple of times until "nautilus: no process killed" is shown

`thescript' will then be visible on the right-click context-menu under scripts

edit:
you can also associate a custom command for .cab-files when left-clicking btw.