Skip Menu |

This queue is for tickets about the Net-DBus CPAN distribution.

Report information
The Basics
Id: 105325
Status: resolved
Priority: 0/
Queue: Net-DBus

People
Owner: Nobody in particular
Requestors: oholecek [...] suse.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Download signature.asc
application/pgp-signature 473b

Message body not shown because it is not plain text.

Addressed in commit c7c3d75c131647f6e292bd03045e85e368d1d4bf Author: Daniel P. Berrange <berrange@redhat.com> Date: Mon Dec 16 21:11:36 2019 +0000 Fix passing "nomainloop" parameter from Net::DBus->find