<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.ubuntu-fr.org/extern.php?action=feed&amp;tid=1134801&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Forum Ubuntu-fr.org / [Résolu] Besoin d'aide sur une fonction de Zenity]]></title>
		<link>http://forum.ubuntu-fr.org/viewtopic.php?id=1134801</link>
		<description><![CDATA[Les sujets les plus récents dans [Résolu] Besoin d'aide sur une fonction de Zenity.]]></description>
		<lastBuildDate>Tue, 11 Dec 2012 13:16:11 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[[Résolu] Besoin d'aide sur une fonction de Zenity]]></title>
			<link>http://forum.ubuntu-fr.org/viewtopic.php?pid=11829871#p11829871</link>
			<description><![CDATA[<p>Bonjour,</p><p><strong>EDIT: </strong> <span style="color: #ff031c"><strong>j&#039;ai trouvé merci (sur le site de Zenity j&#039;ai mal regarder au début)</strong></span></p><p>Je m&#039;amuse a faire un petit script avec Zenity<br />en faite je fait un générateur pour faire des scripts bash via l&#039;interface<br />mais j&#039;ai un problème je sais pas comment reprendre la valeur du <strong>--editable</strong><br />en faite c&#039;est le bloc note<br /><a href="http://library.gnome.org/users/zenity/stable/text.html.fr">http://library.gnome.org/users/zenity/s … xt.html.fr</a></p><p>je voudrais copier les infos dans le bloc note pour le mettre dans un fichier que j&#039;ai crée pour en faire un script exécutable <br />mais voila je sais pas comment m&#039;y prendre <img src="http://forum.ubuntu-fr.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>voici le script</p><div class="codebox"><pre class="vscroll"><code>#!/bin/bash

# Dossier des scripts
Dossier=&quot;/home/inbox/scripts/&quot;
# Nom du fichier
Fichier=&quot;create-script.sh&quot;

if [ -e $Dossier$Fichier ]; then
zenity --text-info \
       --title=&quot;Générateur de script bash&quot; \
       --filename=$Dossier$Fichier \
       --editable=$Dossier$Fichier \
       --checkbox=&quot;Je valide la mise en forme&quot;

case $? in
    0)
        echo &quot;Démarrage de l&#039;installation !&quot;
        ;;
    1)
        echo &quot;Arrêt de l&#039;installation !&quot;
        ;;
    -1)
        echo &quot;Une erreur inattendue est survenue.&quot;
        ;;
esac
else
zenity --error --text &quot;ATTENTION:\nle fichier (create-script.sh) est manquant&quot;;
zenity --error --text &quot;Création du fichier dans le dossier des scripts.&quot;;
touch $Dossier$Fichier
sleep 2
sh $Dossier/scripts.sh
fi;</code></pre></div><p>si vous avez une petite idée Merci a vous</p>]]></description>
			<author><![CDATA[dummy@example.com (kazylax)]]></author>
			<pubDate>Tue, 11 Dec 2012 13:16:11 +0000</pubDate>
			<guid>http://forum.ubuntu-fr.org/viewtopic.php?pid=11829871#p11829871</guid>
		</item>
	</channel>
</rss>
