[Ilugc] rightclick menu, open file with custom shell script

Kishore Reddy enigma2006.kishore at gmail.com
Fri Mar 19 22:04:42 IST 2010


I had similar requirement (En queuing files in totem). After googling
I found that you can write scripts (whatsoever may be the programming
language) and put that in ~/.gnome2/nautilus-scripts and give execute
permissions. If you do that, whenever you right-click any file you can
see "Scripts" in the context menu and int the Scripts menu you can see
your script name. Clicking on that, shell passes the filename as the
argument to your script.

--
Kishore



On Fri, Mar 19, 2010 at 7:01 PM, narendra sisodiya
<narendra.sisodiya at gmail.com> wrote:
> On Fri, Mar 19, 2010 at 6:41 PM, steve <steve at lonetwin.net> wrote:
>
>> Hi,
>>
>> On 03/19/2010 05:54 PM, narendra sisodiya wrote:
>>
>>> [...snip...]
>>>
>>> I went to gconf-editor to find file association ! for example
>>> Key == > /desktop/gnome/thumbnailers/audio at x-mp3/command
>>> has  command = /usr/bin/totem-video-thumbnailer -s %s %u %o
>>>
>>> I think filename tobe passed using % parameter, do anybody has any clue ?
>>>
>>
>> Well, I think this might help:
>> http://developer.gnome.org/doc/whitepapers/SystemConfig/mime-info.html
>>
>> and most probably for your specific problem, this might be of interest:
>> http://developer.gnome.org/doc/whitepapers/SystemConfig/type-conv.html
>>
>> Let me read it, It may help me !
> --
> ┌─────────────────────────┐
> │    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
> │    Society for Knowledge Commons
> │    Web : http://narendra.techfandu.org
> └─────────────────────────┘
>
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
>


More information about the ilugc mailing list