Hi again,
the problem is more or less a bug in udisks2 in the Debian packages that overload the DBus.
But anyway can you please try this solution.
the problem is more or less a bug in udisks2 in the Debian packages that overload the DBus.
But anyway can you please try this solution.
Code:
my ($code, $timeout) = @_;
my $bus = Net::DBus->system();
+ my $con = $bus->get_connection;
my $reactor = Net::DBus::Reactor->main();
+ # If DBus is busy, the connection will be refused, so we'll try again.
+ for (my $i = 0; (0 == $con->is_connected()) || ($i < 5); $i++) {
+ $bus = Net::DBus->system();
+ $con = $bus->get_connection;
+ }