-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Matthias!
Yes, I'm running it as root. But not, I didn't create a DBus interface file. I'll look how to do that. Thanks! El 07/11/12 23:51, Matthias Klumpp escribió: > Hi! > Have you created a DBus interface file? Are you running that stuff as root? > Cheers, > Matthias > > 2012/11/7 rastersoft <[email protected]>: >> Hi all: >> >> I'm trying to register an object in dbus'SYSTEM bus, but I'm unable to >> do so. I try with: >> >> >> [DBus (name = "com.rastersoft.gamed")] >> >> public class dbus_class: Object { >> >> public void set_priority(int new_priority) { >> >> k.do_check(new_priority); >> >> } >> >> } >> >> void on_bus_aquired (DBusConnection conn) { >> >> >> >> GLib.stdout.printf ("Registering bus\n"); >> >> try { >> >> var l=conn.register_object<dbus_class> ("/com/rastersoft/gamed", new dbus_class()); >> >> GLib.stdout.printf ("Registered bus %d\n",(int)l); >> >> } catch (IOError e) { >> >> GLib.stderr.printf ("Could not register service\n"); >> >> Posix.exit(-1); >> >> } >> >> } >> >> >> >> Bus.own_name (BusType.SYSTEM, "com.rastersoft.gamed", BusNameOwnerFlags.NONE, on_bus_aquired , () => { >> >> GLib.stdout.printf ("Catched bus\n"); >> >> }, () => { >> >> GLib.stderr.printf ("Bus lost\n"); >> >> Posix.exit(-1); >> >> }); >> >> >> >> But always get "Bus lost". If I replace BusType.SYSTEM with >> BusType.SESSION, it works fine. What am I doing incorrect? >> >> Thanks! >> >> -- >> Nos leemos >> RASTER (Linux user #228804) >> [email protected] http://www.rastersoft.com >> >> _______________________________________________ >> vala-list mailing list >> [email protected] >> https://mail.gnome.org/mailman/listinfo/vala-list > - -- Nos leemos RASTER (Linux user #228804) [email protected] http://www.rastersoft.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCa5xAACgkQXEZvyfy1ha+9wwCgl8P1WU8H9K6qjnlLiUqFWJ78 VOoAnAqxof+cg7n0Tn1AgZwrK27KUre4 =CcMd -----END PGP SIGNATURE----- _______________________________________________ vala-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/vala-list
