Subject: | nomainloop option is not being passed to bus constructor |
Date: | Thu, 18 Jun 2015 11:37:07 +0200 |
To: | bug-Net-DBus [...] rt.cpan.org |
From: | Ondrej Holecek <oholecek [...] suse.com> |
Hi,
- I am using Net::DBus together with different reactor (in my case
Mojo::Reactor).
- I am creating bus object by calling Net::DBus->find
- by having bug in my application I noticed that passing nomainloop => 1 or 0
to Net::DBus->find does not do any difference, tracing it down to line 153 of
DBus.pm:
sub find {
my $class = shift;
if ($ENV{DBUS_STARTER_BUS_TYPE} &&
$ENV{DBUS_STARTER_BUS_TYPE} eq "session") {
return $class->session(@_);
} elsif ($ENV{DBUS_STARTER_BUS_TYPE} &&
$ENV{DBUS_STARTER_BUS_TYPE} eq "system") {
return $class->system(@_);
} elsif (exists $ENV{DBUS_SESSION_BUS_ADDRESS}) {
return $class->session(@_);
} else {
return $class->system;
}
}
I am hitting 'return $class->system;' call which does not pass received
arguments (@_) to it.
My Net::DBus version is 'perl-Net-DBus-1.1.0-1.1.x86_64' on 'openSUSE
Tumbleweed'
Thanks,
Ondrej
Message body not shown because it is not plain text.