re modification d'un script nautilus
Fred -Z
frederic.zech at free.fr
Mer 22 Déc 12:02:07 UTC 2010
Avell Diroll a écrit :
> On 22/12/10 11:59, Fred -Z wrote:
>
>> Ju a écrit :
>>
>>> C'est presque ça.
>>>
>>> Voici une solution ... il est à noté que l'iamge se trouve transformée
>>> sans sauvegarde du format original:
>>>
> (snip)
>
>> Merci, mais en fait je voudrai la transformer au format png.
>>
>
> voilà:
>
> #########
>
> #!/bin/bash
> #
> curpath=`echo $NAUTILUS_SCRIPT_CURRENT_URI | sed 's/file\:\/\///'`
> cd $curpath
> #
> oldname=$1
> newname=${oldname%.*}.png
> convert $curpath/$oldname -resize 1280x1024! -depth 16 $curpath/$newname
> #uncomment if you don't want to keep the original:
> # rm $curpath/$oldname
> #
> gconftool-2 --type string --set /apps/gnome-session/option/splash_image
> "$curpath/$newname"
>
> #########
>
>
> Ju
>
Merci beaucoup, c'est ce que je voulait!
Frédéric Z
Plus d'informations sur la liste de diffusion ubuntu-fr