Subject: | no show message for sometime. |
Date: | Thu, 18 Apr 2013 16:45:30 +0800 |
To: | bug-Gtk2-Notify [...] rt.cpan.org |
From: | 胡同望 <hu_tw [...] hisuntech.com> |
$ cat notice_utf8.pl
#!/usr/bin/perl -w
use Gtk2::Notify -init, "Test Perl Notify";
use Encode qw/ encode decode /;
#my $message = shift @ARGV;
my $message = "hutong";
my $summary = decode ( "utf8",'脚本通知' );
my $icon = "/usr/share/icons/hicolor/128x128/apps/fwbuilder.png";
my $attach_widget = undef;
my $notification = Gtk2::Notify->new($summary, $message, $icon,
$attach_widget);
$notification->show;
hutong@hutong-laptop:sys_sh\
$ uname -a
Linux hutong-laptop 2.6.32-46-generic #107-Ubuntu SMP Fri Mar 22
20:15:42 UTC 2013 x86_64 GNU/Linux
hutong@hutong-laptop:sys_sh\
$ perl -v
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
Copyright 1987-2009, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
--
胡同望
湖南高阳通联信息技术有限公司
IT支持中心,系统网络部
Moblie:18774888040
E-mail: hu_tw@hisuntech.com
Address: 湖南省长沙市天心区劳动西路268号嘉盛.奥美城北栋401