Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nautilus Scripts? [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
misho
Apprentice
Apprentice


Joined: 15 Apr 2004
Posts: 189

PostPosted: Thu Dec 30, 2004 3:23 am    Post subject: Nautilus Scripts? [solved] Reply with quote

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
View user's profile Send private message
rfdonnelly
n00b
n00b


Joined: 31 Dec 2004
Posts: 68
Location: Riverside, CA USA

PostPosted: Fri Dec 31, 2004 1:33 am    Post subject: Reply with quote

I found this: http://puzzling.org/computing/help/gnome
Googled for: nautilus scripts 2.8

Hope this helps.
Back to top
View user's profile Send private message
misho
Apprentice
Apprentice


Joined: 15 Apr 2004
Posts: 189

PostPosted: Sat Jan 01, 2005 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Telamon
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 129

PostPosted: Sat Jan 01, 2005 9:04 am    Post subject: Possible Fix Reply with quote

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
View user's profile Send private message
rfdonnelly
n00b
n00b


Joined: 31 Dec 2004
Posts: 68
Location: Riverside, CA USA

PostPosted: Sun Jan 02, 2005 12:39 am    Post subject: Re: Possible Fix Reply with quote

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
View user's profile Send private message
joycea
Apprentice
Apprentice


Joined: 23 Jul 2002
Posts: 191
Location: Kingston, Canada

PostPosted: Sun Jan 02, 2005 3:23 am    Post subject: Reply with quote

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
View user's profile Send private message
sglow
n00b
n00b


Joined: 10 Nov 2003
Posts: 24
Location: MA, USA

PostPosted: Sun Jan 02, 2005 4:22 am    Post subject: Reply with quote

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
View user's profile Send private message
misho
Apprentice
Apprentice


Joined: 15 Apr 2004
Posts: 189

PostPosted: Mon Jan 03, 2005 1:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Motomouse
n00b
n00b


Joined: 28 Nov 2003
Posts: 56

PostPosted: Wed Jan 12, 2005 9:54 pm    Post subject: Reply with quote

removing first bin bash stuff worked here also.
Thanks alot
ralph
Back to top
View user's profile Send private message
xro
n00b
n00b


Joined: 05 May 2004
Posts: 26

PostPosted: Mon Mar 07, 2005 3:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
bfdi533
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2003
Posts: 133

PostPosted: Mon Mar 28, 2005 5:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
misho
Apprentice
Apprentice


Joined: 15 Apr 2004
Posts: 189

PostPosted: Wed Mar 30, 2005 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum