<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: zenity code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 29 Aug 2008 03:28:45 GMT</pubDate>
    <description>DZone Snippets: zenity code</description>
    <item>
      <title>Choose profile before launching GNOME Terminal emulator</title>
      <link>http://snippets.dzone.com/posts/show/4572</link>
      <description>This is a small sheel scripts that uses zenity to show a dialog that lets you choose the profile you want to use before launching a GNOME terminal window. &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;&lt;br /&gt;#################################################&lt;br /&gt;# Simple zenity script to display a dialog from #&lt;br /&gt;# which to choose the profile you want for a    #&lt;br /&gt;# GNOME terminal you want to run.               #&lt;br /&gt;# (C) 2007 - Antonio Ognio &lt;gnrfan@gnrfan.org&gt;  #&lt;br /&gt;# License: GPL                                  #&lt;br /&gt;#################################################&lt;br /&gt;&lt;br /&gt;PROFILES=`gconftool-2 --all-dirs /apps/gnome-terminal/profiles`&lt;br /&gt;LIST=""&lt;br /&gt;for p in $PROFILES; do&lt;br /&gt;  p=`basename $p`&lt;br /&gt;  LIST="$LIST FALSE $p "&lt;br /&gt;done&lt;br /&gt;choosen=`zenity  --title "GNOME Terminal" --window-icon /usr/share/icons/gnome/scalable/apps/gnome-terminal.svg --text "Choose one from available profiles:" --list  --radiolist  --column "" --column "Profiles" $LIST`&lt;br /&gt;gnome-terminal --window-with-profile=$choosen &amp;&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 26 Sep 2007 03:07:27 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4572</guid>
      <author>gnrfan (Antonio Ognio)</author>
    </item>
  </channel>
</rss>
