<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Lisandro Grassini &#187; ubuntu</title>
	<atom:link href="http://www.lgrassini.com/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://www.lgrassini.com</link>
	<description>random access memory</description>
	<lastBuildDate>Sat, 06 Mar 2010 18:19:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Evolution &#8211; Instancia Única</title>
		<link>http://www.lgrassini.com/linux/evolution-instancia-unica</link>
		<comments>http://www.lgrassini.com/linux/evolution-instancia-unica#comments</comments>
		<pubDate>Fri, 10 Aug 2007 19:35:26 +0000</pubDate>
		<dc:creator>lichi</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.lgrassini.com/?p=5</guid>
		<description><![CDATA[Bueno, desde hace un tiempo que venía buscando la forma de modificar el comportamiento de Evolution para que siempre utilice una única instancia.
Muchas veces me pasaba que entre tantas ventanas abiertas, me olvidaba que Evolution estaba minimizado y, al intentar abrirlo nuevamente desde el menú, en lugar de maximizar la instancia previamente activa, abría una [...]]]></description>
			<content:encoded><![CDATA[<p>Bueno, desde hace un tiempo que venía buscando la forma de modificar el comportamiento de Evolution para que siempre utilice una única instancia.<br />
Muchas veces me pasaba que entre tantas ventanas abiertas, me olvidaba que Evolution estaba minimizado y, al intentar abrirlo nuevamente desde el menú, en lugar de maximizar la instancia previamente activa, abría una nueva.</p>
<p>Para solucionar este comportamiento indeseado (por lo menos en mi caso) creé el siguiente script en Perl, basado en Evonotify [1].</p>
<pre class="brush: perl;">
# EvoLauncher was created by Lisandro Grassini
# based on Evonotify created by Oliver Grawert
#
# This script is free software; you can redistribute it and/or modify it
# under the terms of the GNU Library General Public License

#!/usr/bin/perl
use Gnome2;
use Gnome2::Wnck;

Gtk2-&gt;init();

$stamp = time;
$screen = Gnome2::Wnck::Screen-&gt;get_default();

$screen-&gt;force_update();
foreach $window ($screen-&gt;get_windows()) {
if ($window-&gt;get_name =~ /Evolution/) {
$evolution = $window;
}
}

if($evolution) {
$evolution-&gt;unminimize($stamp);
$evolution-&gt;get_workspace-&gt;activate($stamp);
$evolution-&gt;activate($stamp);
print $evolution-&gt;get_geometry;
}
else {
system('evolution');
}

Gtk2-&gt;main_iteration() while (Gtk2-&gt;events_pending());
Gtk2-&gt;main();
</pre>
<p>[1]  http://www.grawert.net/software/evonotify/index.html</p>
<p>Espero les sea útil como a mi.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lgrassini.com/linux/evolution-instancia-unica/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
