From: Michael Stapelberg Date: Sat, 27 Mar 2010 13:54:30 +0000 (+0100) Subject: use new default ipc-socket path, glob() path, bump version X-Git-Tag: 4.14~14^2~33 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6568648386348ba29f0f36654163eeb0db1d89e;p=i3%2Fi3 use new default ipc-socket path, glob() path, bump version --- diff --git a/lib/AnyEvent/I3.pm b/lib/AnyEvent/I3.pm index a2951767..d9a55b2b 100644 --- a/lib/AnyEvent/I3.pm +++ b/lib/AnyEvent/I3.pm @@ -15,11 +15,11 @@ AnyEvent::I3 - communicate with the i3 window manager =cut -our $VERSION = '0.03'; +our $VERSION = '0.04'; =head1 VERSION -Version 0.03 +Version 0.04 =head1 SYNOPSIS @@ -29,7 +29,7 @@ then subscribe to events or send messages and receive their replies. use AnyEvent::I3 qw(:all); - my $i3 = i3("/tmp/i3-ipc.sock"); + my $i3 = i3("~/.i3/ipc.sock"); $i3->connect->recv or die "Error connecting"; say "Connected to i3"; @@ -94,9 +94,9 @@ the UNIX socket to connect to. sub new { my ($class, $path) = @_; - $path ||= '/tmp/i3-ipc.sock'; + $path ||= '~/.i3/ipc.sock'; - bless { path => $path } => $class; + bless { path => glob($path) } => $class; } =head2 $i3->connect