IDEA: PGP crypt and decrypt in xftree
Edscott Wilson García
edscott at imp.mx
Fri Mar 8 14:32:39 CET 2002
On Vie 08 Mar 2002 02:27, Biju Chacko wrote:
>
> A lot of people are suggesting interesting extensions to xftree. What
> Edscott should do is implement a scripting interface. Provide a
> scripting language so that people could implement their own extensions.
> LISP would be a good language for this. I can imagine all sorts of
> useful extensions:
AFAIK it is already there, since you just have to put the scripts in your
~/bin directory and register this-or-that application to use it. For example,
when I double click on a .tex file, xftree runs the following script:
#!/usr/bin/perl
`latex $ARGV[0]`;
$ARGV[0] =~ s/\.tex/\.dvi/g;
$ps=`dvips -f $ARGV[0]`;
$ARGV[0] =~ s/\.dvi/\.ps/g;
open PS,">$ARGV[0]" or die "cant open $ARGV[0]";
print PS $ps;
close PS;
`gv -scalebase 2 $ARGV[0]`;
And if I want to edit the file, I select "open with" from the menu and choose
my favourite editor.
If I want some kind of program or script to be in the "open with" options all
you have to do is to register it with some kind of file type.
Doesn't this take of scripts? Maybe we should start a "useful scripts" section
for xfce as a separate directory in the CVS tree?
Edscott
More information about the Xfce
mailing list