Hi Matej,

Thanks for your reply.

Le vendredi 16 décembre 2005 à  17:05:49
Matej Cepl <[EMAIL PROTECTED]> a écrit:

> Denis Prost wrote:
> > the workaround I found is to put somewhere in my path the following
> > shell script, called sylpheed-claws_for_oo.sh
> > 
> > #!/bin/sh
> > args="$*"
> > file=${args/--attach /}
> > sylpheed-claws-gtk2 --attach "$file"
> > 
> 
> I would rather do this:
> 
> #!/bin/sh
> args="$*"
> myarg=""
> [ -n $args ] && file=${args/--attach /}
> [ -n $file ] && myarg="--attach \"$file\""
> sylpheed-claws-gtk2 $myarg
> 
> Because of this, you will get never empty --attach argument to the
> real sylpheed calling.
> 
You're right, that't a sounder script that can work even if there is
no argument to it. Mine is only dedicated to be used for OO and should
always work in that case (OO is supposed to always call it with an
argument).

Regards

Denis


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to