Re: Status of scripting in nautilus



On Fri, 2004-12-17 at 14:56 +0100, Daniel P�h wrote:
> I use the "Open Terminal" script from http://g-scripts.sourceforge.net 
> on a daily Basis with nautilus 2.8.1 (Ubuntu)
> 
> ----8<---- placed under ~/.gnome2/nautilus-scripts:
> #!/usr/bin/perl -w
> #
> # Open terminal here
> #
> # Nautilus script that opens a gnome-terminal at the current location, 
> if it's
> # a valid one. This could be done in shell script, but I love Perl!.
> #
> # 20020930 -- Javier Donaire <jyuyu fraguel org>
> # http://www.fraguel.org/~jyuyu/
> # Licensed under the GPL v2+
> #
> # Modified by: Dexter Ang [thepoch mydestiny net]
> # 2003-12-08: Modified for Gnome 2.4
> #		- Added checking if executed on Desktop "x-nautilus-desktop:///"
> #		  so that it opens in /home/{user}/Desktop
> 
> use strict;
> 
> $_ = $ENV{'NAUTILUS_SCRIPT_CURRENT_URI'};
> if ($_ and m#^file:///#) {
>    s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
>    s#^file://##;
>    exec "gnome-terminal --working-directory='$_'";
> }
> 
> # Added 2003-12-08 Dexter Ang
> if ($_ == "x-nautilus-desktop:///") {
>    $_ = $ENV{'HOME'};
>    $_ = $_.'/Desktop';
>    exec "gnome-terminal --working-directory='$_'";
> }
> ---->8----


Thanks for the script, but it doesn't work either.

Is there a way to get nautilus to output what it is doing to a terminal?
When I try to run nautilus in a terminal it just goes back to the
command prompt.

Thanks for the help.


> Rgds,
> Daniel
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]