From e6568648386348ba29f0f36654163eeb0db1d89e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 27 Mar 2010 14:54:30 +0100 Subject: [PATCH] use new default ipc-socket path, glob() path, bump version --- lib/AnyEvent/I3.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5