Re: how to prevent standby during critical operations on linux
- From: "A. Walton" <awalton gnome org>
- To: frm <francesco montorsi gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to prevent standby during critical operations on linux
- Date: Tue, 6 Apr 2010 19:16:04 -0400
On Tue, Apr 6, 2010 at 6:05 PM, frm <francesco montorsi gmail com> wrote:
Hi,
A. Walton-2 wrote:
On Mon, Apr 5, 2010 at 5:46 AM, frm <francesco montorsi gmail com> wrote:
What do you suggest?
Is there some simple example code for using DBus+DeviceKit-power from a
GTK
app somewhere?
http://people.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Inhibit
is probably what you're looking for on GNOME.
Thanks a lot!
Just a few more questions about it:
1) the page you linked seems to contain API docs for a generic language (not
necessarily C/C++) nor it contains any info about which library/header files
contain those APIs... how can I use it from a C/C++ program?
It's the D-Bus api, as it says on the page.
2) is there some example of apps already using that library?
http://git.gnome.org/browse/brasero/tree/libbrasero-burn/burn-dbus.c
http://git.gnome.org/browse/nautilus/commit/?id=37e7ceca45aea48129cf55ea2583f23330d26b91
-A. Walton
Thank you very much indeed!
Francesco
--
View this message in context:
http://old.nabble.com/how-to-prevent-standby-during-critical-operations-on-linux-tp28138463p28158185.html
Sent from the Gtk+ - Apps Dev mailing list archive at Nabble.com.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]