View previous topic :: View next topic |
Author |
Message |
misho Apprentice
Joined: 15 Apr 2004 Posts: 189
|
Posted: Thu Dec 30, 2004 3:23 am Post subject: Nautilus Scripts? [solved] |
|
|
I'm currently running nautilus 2.8 and I really miss the "Open With Terminal" option for directories, so I looked into what could be done, and it said I should make my own scrupts. So, following instructions I found somewhere, I made a script:
Code: | ~/.gnome2/nautilus-scripts/terminal-here |
and made it executable, but I have no idea how I'm supposed to actvate the script. Is this impossible? Did they drop support for scripts somewhere down the line? Or (most likely), is there some way that I haven't found?
Thanks for any input. _________________ "Pssht. Extreme sports. If you want a real adrenaline rush, go write a physics exam without a calculator." - D.Z.
Last edited by misho on Mon Jan 03, 2005 1:39 am; edited 1 time in total |
|
Back to top |
|
|
rfdonnelly n00b
Joined: 31 Dec 2004 Posts: 68 Location: Riverside, CA USA
|
|
Back to top |
|
|
misho Apprentice
Joined: 15 Apr 2004 Posts: 189
|
Posted: Sat Jan 01, 2005 7:37 am Post subject: |
|
|
I have done all that. It doesn't seem to work. I still have no scripts menu entry. _________________ "Pssht. Extreme sports. If you want a real adrenaline rush, go write a physics exam without a calculator." - D.Z. |
|
Back to top |
|
|
Telamon Tux's lil' helper
Joined: 29 Dec 2003 Posts: 129
|
Posted: Sat Jan 01, 2005 9:04 am Post subject: Possible Fix |
|
|
According to http://bugzilla.gnome.org/show_bug.cgi?id=153734 you need to upgrade to x11-misc/shared-mime-info-0.15 (which is masked) for the scripts directory to work.
I tried this, restarted nautilus with "killall nautilus" and it seems to have worked. |
|
Back to top |
|
|
rfdonnelly n00b
Joined: 31 Dec 2004 Posts: 68 Location: Riverside, CA USA
|
Posted: Sun Jan 02, 2005 12:39 am Post subject: Re: Possible Fix |
|
|
Telamon wrote: | According to http://bugzilla.gnome.org/show_bug.cgi?id=153734 you need to upgrade to x11-misc/shared-mime-info-0.15 (which is masked) for the scripts directory to work.
I tried this, restarted nautilus with "killall nautilus" and it seems to have worked. |
In /usr/portage/profiles/package.mask it states:
Code: | # <foser@gentoo.org> (13 Oct 2004)
# 2 masks to make gnome 2.8 behave
>=media-sound/esound-0.2.35
>=x11-misc/shared-mime-info-0.15
|
So maybe emerging 0.15 isn't a good idea. The same bugzilla entry also suggests striping the #! line from the scripts:
Quote: | ------- Additional Comment #9 From Steve Glow 2004-11-28 12:31 -------
I've made a couple more interesting observations on this which I hope help.
It turns out that the scripts that I can't run from nautillus are ones that
start with a line: #!/bin/bash or #!/usr/bin/perl. These all run fine from the
command line by the way, permissions are set OK, etc.
All the scripts I currently have in ~/.gnome2/nautilus-scripts are also of this
form. If I put a file in that scripts directory which is just a text file with
the execute bit set, it will be displayed on the scripts sub-menu.
S |
I tried it and it works for me with shared-mime-info-0.14. |
|
Back to top |
|
|
joycea Apprentice
Joined: 23 Jul 2002 Posts: 191 Location: Kingston, Canada
|
Posted: Sun Jan 02, 2005 3:23 am Post subject: |
|
|
Just wanted to add that things didn't work well for me when I uncommented the first line. Some scripts worked, some didn't. I unmasked the -0.15 package and then things worked wonderfully. No problems yet. |
|
Back to top |
|
|
sglow n00b
Joined: 10 Nov 2003 Posts: 24 Location: MA, USA
|
Posted: Sun Jan 02, 2005 4:22 am Post subject: |
|
|
I also needed to merge version 0.15 of shared-mime-info to get this to work. Is this true for everyone, or do scripts work for some people with version 0.14?
Does anyone know why 0.15 is masked?
Steve |
|
Back to top |
|
|
misho Apprentice
Joined: 15 Apr 2004 Posts: 189
|
Posted: Mon Jan 03, 2005 1:39 am Post subject: |
|
|
removing the #!/bin/sh or bash, etc. worked for me. thanks a lot rfdonnelly.
I did not need to emerge the masked mime info package. _________________ "Pssht. Extreme sports. If you want a real adrenaline rush, go write a physics exam without a calculator." - D.Z. |
|
Back to top |
|
|
Motomouse n00b
Joined: 28 Nov 2003 Posts: 56
|
Posted: Wed Jan 12, 2005 9:54 pm Post subject: |
|
|
removing first bin bash stuff worked here also.
Thanks alot
ralph |
|
Back to top |
|
|
xro n00b
Joined: 05 May 2004 Posts: 26
|
Posted: Mon Mar 07, 2005 3:59 pm Post subject: |
|
|
Hi,
thanks to the mime-tipps in this Thread I got the nautilus-scripts to work on my laptop.
My Gentoo-Desktop-Box however is another matter entirely:
(i tried with shared-mime-0.15 and 0.14..)
Here I made the following observations:
*No matter what I do, my main-users script-menu won't appear
*If I create a _new_ user, with a fresh home-dir and follow the steps 1.goto nautilus-scripts, 2. create a file, 3. put something workable in there (+ #!/bin/bash), 4. make it executable
, then the Script-Menu does in fact appear.
*Copying (and fixing the permissions) of the new users komplete homedir to my standard-user-homedir does _not_ get me a Scripts-Menu with my standard-user
*rm -R ...; mkdir; cp -r /etc/skel /home/...; creating a virgin-home-dir for my standard-user and following the steps that worked with my test-user also do _not_ get me a Scripts-Menu
Are there global Gnome/Nautilus per-user settings that I could have missed somewhere ?
And no, I did not accidantly miss the hidden leading-dot files in the home-dirs |
|
Back to top |
|
|
bfdi533 Tux's lil' helper
Joined: 11 Jun 2003 Posts: 133
|
Posted: Mon Mar 28, 2005 5:30 pm Post subject: |
|
|
misho wrote: | removing the #!/bin/sh or bash, etc. worked for me. thanks a lot rfdonnelly.
I did not need to emerge the masked mime info package. |
That only works if the script is actually a shell script. For me, trying to put a perl script into that directory will not work as the perl commands are not able to be run from a /bin/sh command shell. It gives an error and requires the #! line. |
|
Back to top |
|
|
misho Apprentice
Joined: 15 Apr 2004 Posts: 189
|
Posted: Wed Mar 30, 2005 4:34 am Post subject: |
|
|
Do perl scripts work with the shared-mime-info-0.16 (or 0.15) installed? _________________ "Pssht. Extreme sports. If you want a real adrenaline rush, go write a physics exam without a calculator." - D.Z. |
|
Back to top |
|
|
|