Re: [Vala] How to get OS Information in Vala?
- From: Evan Nemerson <evan coeus-group com>
- To: Александер Пономарёв <shootnix gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] How to get OS Information in Vala?
- Date: Fri, 28 Dec 2012 11:38:37 -0800
On Fri, 2012-12-28 at 21:24 +0200, Александер Пономарёв wrote:
Hi folks,
I'm sorry for a newbie question, but I really can't find it in google:
how to get information about operating system in vala?
Trying Osinfo:
$ valac --pkg osinfo-1.0 myprogram.vala
but it doesn't work:
libosinfo-1.0.vapi:150.69-150.84: error: The type name
`GLib.Cancellable' could not be found
public static Osinfo.Media create_from_location (string location,
GLib.Cancellable? cancellable) throws GLib.Error;
GLib.Cancellable is in gio-2.0. Just add --pkg gio-2.0 to your valac
invocation.
-Evan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]