[Pkg-xfce-devel] Bug#434863: Bug#434863: xfce4-terminal: Wrapper script seems broken

Andrea Bolognani eof at kiyuko.org
Tue Jul 31 16:54:40 UTC 2007

On Tue, 31 Jul 2007 15:52:20 +0100
Simon Huggins <huggie at earth.li> wrote:

> On Fri, Jul 27, 2007 at 12:24:51PM +0200, Andrea Bolognani wrote:
> > I'm using xfce4-terminal to run vim as external editor in Sylpheed.
> > The command line I give is
> > 	xfce4-terminal.wrapper -e vim %s
> > but the terminal windows seems to be spawned before the temp file is
> > ready, and as a result I can't edit the mail in vim.
> What makes the file be ready?  Is this Sylpheed that does that?

I don't know the inner mechanics of Sylpheed, but I guess it just creates
a temp file containing you signature (if any) and lets the external editor
handle it.

> > This works perfectly if I use gnome-terminal.wrapper (except for the
> > fact it takes a looong time to start ;) and also if I make a copy of
> > gnome-terminal.wrapper and edit the last line to make it run
> > xfce4-terminal instead.
> > I'm no Perl guru, so I can't help fixing the bug.
> Well I understand Perl but looking at both the gnome-terminal (2.18.1)
> and xfce4-terminal wrapper scripts they are functionally the same to my
> eyes.

They look the same also to my eyes, but as I said, I don't know Perl that

In fact, I was wrong. The "copy gnome-terminal.wrapper and replace the call"
trick doesn't work. I don't know why I had this impression in the first

Sorry for the noise.

> They both just translate some arguments from one format to another and
> then replace perl with the terminal using an exec() call.
> I think this is probably Sylpheed's bug if it doesn't create the file
> until a little while after it spawns the editor but I'm not sure if that
> is what you're describing.

Then why it works with gnome-terminal, xterm and rxvt, but not with

(I did some testing making a copy of xfce4-terminal.wrapper and editing the
 called command. for xterm and rxvt, I modified the script not to use the -x
 instead of the -e option, since they natively support executing a command
 line with the -e option)

So I guess the bug is not in the wrapper script, but in xfce4-terminal
itself -- or in Sylpheed, but after testing it with three different terminal
emulators, it seems unlikely.

> What happens exactly in the case when the file isn't "ready" as you say?

It is not consistent.

Sometimes I get an empty file; other times I get a file containing my
signature (as it should be), but when I save it the content is not passed
over to Sylpheed's composing window.

KiyuKo <eof AT kiyuko DOT org>
Resistance is futile, you will be garbage collected.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-xfce-devel/attachments/20070731/8105d31c/attachment.pgp 

More information about the Pkg-xfce-devel mailing list