Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Anyone speak dbus?

by gam3 (Curate)
on Jan 20, 2008 at 14:17 UTC ( [id://663275]=note: print w/replies, xml ) Need Help??


in reply to Anyone speak dbus?

It seems that with Net::DBus you need to call get_service and then call get_object on the service object.

I am not running gnome so I can't test this, but I think that this code will get you closer:

use Net::DBus; #get the session bus my $bus = Net::DBus->session; my $srv = $bus->get_service("org.gnome"); my $devobj = $srv->get_object("/org/gnome/PowerManager", "org.gnome.Po +werManager"); my $cookie = $devobj->Inhibit("Squeezecenter", "Playing"); #.... more code $devobj->UnInhibit($cookie);
-- gam3
A picture is worth a thousand words, but takes 200K.

Replies are listed 'Best First'.
Re^2: Anyone speak dbus?
by Anonymous Monk on Jan 21, 2008 at 13:52 UTC
    I have found some additional info on : http://lists.freedesktop.org/archives/xdg/2006-June/006523.html

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://663275]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found