13
my $reply = Qt::DBusConnection::sessionBus()->interface()->registeredServiceNames();
14
if ( !$reply->isValid ) {
15
print 'Error:' . $reply->message() . "\n";
18
foreach my $name ( @{$reply->value()} ) {
27
my $bus = Qt::DBusConnection::sessionBus();
28
my $dbus_iface = Qt::DBusInterface('org.freedesktop.DBus', '/org/freedesktop/DBus',
29
'org.freedesktop.DBus', $bus);
32
join( '", "', @{$dbus_iface->call('ListNames')->arguments()->[0]->value()} ),
42
join( '", "', @{Qt::DBusConnection::sessionBus()->interface()->registeredServiceNames()->value()} ),
48
my $app = Qt::CoreApplication(\@ARGV);
50
if (!Qt::DBusConnection::sessionBus()->isConnected()) {
51
print STDERR "Cannot connect to the D-Bus session bus.\n" .
52
"To start it, run:\n" .
53
"\teval \`dbus-launch --auto-syntax\`\n";