From qiang.z.zhang@intel.com Tue Apr 6 07:34:15 2010 Return-Path: X-Original-To: gconf-list@gnome.org Delivered-To: gconf-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 91BD87500DE for ; Tue, 6 Apr 2010 07:34:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.598 X-Spam-Level: X-Spam-Status: No, score=-6.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4kPXYtHx59oq for ; Tue, 6 Apr 2010 07:34:13 +0000 (UTC) X-Greylist: delayed 758 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 06 Apr 2010 07:34:12 UTC Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by menubar.gnome.org (Postfix) with ESMTP id E7A8B7500BD for ; Tue, 6 Apr 2010 07:34:04 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 06 Apr 2010 00:21:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.51,371,1267430400"; d="scan'208,217";a="786745252" Received: from pgsmsx601.gar.corp.intel.com ([10.221.43.69]) by fmsmga001.fm.intel.com with ESMTP; 06 Apr 2010 00:21:21 -0700 Received: from shzsmsx501.ccr.corp.intel.com (10.239.4.96) by pgsmsx601.gar.corp.intel.com (10.221.43.69) with Microsoft SMTP Server (TLS) id 8.2.176.0; Tue, 6 Apr 2010 15:20:47 +0800 Received: from shsmsx501.ccr.corp.intel.com ([10.239.4.141]) by shzsmsx501.ccr.corp.intel.com ([10.239.4.96]) with mapi; Tue, 6 Apr 2010 15:20:45 +0800 From: "Zhang, Qiang Z" To: "gconf-list@gnome.org" Date: Tue, 6 Apr 2010 15:20:44 +0800 Subject: Usage of GConf API issue (gconf_client_get_default,gconf_client_get) Thread-Topic: Usage of GConf API issue (gconf_client_get_default,gconf_client_get) Thread-Index: AcrVWawCDB/6PDnRT6GdRz23RCyrnw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_CF2F38D4AE21BB4CB845318E4C5ECB671D6A83CEshsmsx501ccrcor_" MIME-Version: 1.0 X-BeenThere: gconf-list@gnome.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of the GConf library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 07:34:15 -0000 --_000_CF2F38D4AE21BB4CB845318E4C5ECB671D6A83CEshsmsx501ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I am trying to write a library using GConf API (gconf_client_get, etc.) to = read system configures info, but I encounter the follow issue: gconf_client_get got nothing, and I found the DBUS_SESSION_BUS_ADDRESS is n= ot set in the library process environment. I don't know why DBUS_SESSION_BUS_ADDRESS is not set in my library process = environment. In fact, DBUS_SESSION_BUS_ADDRESS is already set in system. So How to set correct DBUS_SESSION_BUS_ADDRESS in my library? Thanks in advanced -Best regards -Qiang --_000_CF2F38D4AE21BB4CB845318E4C5ECB671D6A83CEshsmsx501ccrcor_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I am trying to write a library using G= Conf API (gconf_client_get, etc.) to read system configures info, but I enc= ounter the follow issue:
gconf_client_get got nothing, and I found the DBUS_SESSION_BUS_A= DDRESS is not set in the library process environment.
 
I don’t know why DBUS_SESSION_BUS_ADDRESS is not set in my= library process environment. In fact, DBUS_SESSION_BUS_ADDRESS is already = set in system.
So How to set correct DBUS_SESSION_BUS_ADDRESS in my library?
 
Thanks in advanced
 
-Best regards
-Qiang
 
 
--_000_CF2F38D4AE21BB4CB845318E4C5ECB671D6A83CEshsmsx501ccrcor_-- From Ghee.Teo@Sun.COM Tue Apr 6 09:39:32 2010 Return-Path: X-Original-To: gconf-list@gnome.org Delivered-To: gconf-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 701877500B7 for ; Tue, 6 Apr 2010 09:39:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.919 X-Spam-Level: X-Spam-Status: No, score=-4.919 tagged_above=-999 required=2 tests=[AWL=1.679, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0-s3Mjj53pOC for ; Tue, 6 Apr 2010 09:39:29 +0000 (UTC) X-Greylist: delayed 1055 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 06 Apr 2010 09:39:23 UTC Received: from gmp-eb-inf-1.sun.com (gmp-eb-inf-1.sun.com [192.18.6.21]) by menubar.gnome.org (Postfix) with ESMTP id E38A975009D for ; Tue, 6 Apr 2010 09:39:15 +0000 (UTC) Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o369LbU5021907 for ; Tue, 6 Apr 2010 09:21:38 GMT MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_cpHeWqUD3HNA6Zy9SZiDYw)" Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0L0G005006YQVO00@fe-emea-10.sun.com> for gconf-list@gnome.org; Tue, 06 Apr 2010 10:21:15 +0100 (BST) Received: from [129.156.226.193] ([unknown] [129.156.226.193]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0L0G008887B2IE20@fe-emea-10.sun.com> for gconf-list@gnome.org; Tue, 06 Apr 2010 10:21:09 +0100 (BST) Date: Tue, 06 Apr 2010 10:19:49 +0100 From: Ghee Teo Subject: Re: Usage of GConf API issue (gconf_client_get_default,gconf_client_get) In-reply-to: Sender: Ghee.Teo@Sun.COM To: gconf-list@gnome.org Message-id: <4BBAFCB5.2040608@sun.com> References: User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100214 Lightning/1.0b1 Thunderbird/3.0.1 X-BeenThere: gconf-list@gnome.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of the GConf library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 09:39:32 -0000 This is a multi-part message in MIME format. --Boundary_(ID_cpHeWqUD3HNA6Zy9SZiDYw) Content-type: text/plain; CHARSET=US-ASCII; format=flowed Content-transfer-encoding: 7BIT On 04/ 6/10 08:20 AM, Zhang, Qiang Z wrote: > Hi all, > I am trying to write a library using GConf API (gconf_client_get, > etc.) to read system configures info, but I encounter the follow issue: > gconf_client_get got nothing, and I found the DBUS_SESSION_BUS_ADDRESS > is not set in the library process environment. This is set when dbus-launch is run and typically is done during login. Try dbus-launch --exit-with-session --sh-syntax It should set that up for your program. -Ghee > I don't know why DBUS_SESSION_BUS_ADDRESS is not set in my library > process environment. In fact, DBUS_SESSION_BUS_ADDRESS is already set > in system. > So How to set correct DBUS_SESSION_BUS_ADDRESS in my library? > Thanks in advanced > -Best regards > -Qiang > > > _______________________________________________ > gconf-list mailing list > gconf-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gconf-list > --Boundary_(ID_cpHeWqUD3HNA6Zy9SZiDYw) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: 7BIT On 04/ 6/10 08:20 AM, Zhang, Qiang Z wrote:
Hi all,
 
I am trying to write a library using GConf API (gconf_client_get, etc.) to read system configures info, but I encounter the follow issue:
gconf_client_get got nothing, and I found the DBUS_SESSION_BUS_ADDRESS is not set in the library process environment.
This is set when dbus-launch is run and typically is done during login.
Try dbus-launch --exit-with-session --sh-syntax <your command>
It should set that up for your program.

-Ghee
 
I don’t know why DBUS_SESSION_BUS_ADDRESS is not set in my library process environment. In fact, DBUS_SESSION_BUS_ADDRESS is already set in system.
So How to set correct DBUS_SESSION_BUS_ADDRESS in my library?
 
Thanks in advanced
 
-Best regards
-Qiang
 
 
_______________________________________________ gconf-list mailing list gconf-list@gnome.org http://mail.gnome.org/mailman/listinfo/gconf-list

--Boundary_(ID_cpHeWqUD3HNA6Zy9SZiDYw)-- From purpleidea@gmail.com Wed Apr 28 20:26:10 2010 Return-Path: X-Original-To: gconf-list@gnome.org Delivered-To: gconf-list@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DA6AD75007E for ; Wed, 28 Apr 2010 20:26:10 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.99 X-Spam-Level: X-Spam-Status: No, score=-1.99 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VzQu52VBC3pv for ; Wed, 28 Apr 2010 20:26:09 +0000 (UTC) Received: from mail-iw0-f173.google.com (mail-iw0-f173.google.com [209.85.223.173]) by menubar.gnome.org (Postfix) with ESMTP id 1949775000C for ; Wed, 28 Apr 2010 20:26:00 +0000 (UTC) Received: by iwn3 with SMTP id 3so12135303iwn.3 for ; Wed, 28 Apr 2010 13:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=Babw62C/yq4bzVEF7y0JGd3g3+OjeeG5rW5QQVeB47A=; b=Uu3cQ+t4/tKra9alpjYvcwA98na42e/X0YCgMDMV4FJpPFcUVJdA4rPDE9ib/jrLrc 0kIiZ+sIy+6w8mlMrWMFZMdMQijD5qrWgBhG1VCC7MndwwXKKWXphlRjjwE5KbrvYngt 0Zc3u8krTUSW05ckP0ls7HQoktWES1v6Wjp+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=UwZC23eSAO+CGFWI24c7VzhT9oVSASATh9T+u1Zzxk1W8/0FSyVO8jg+kHulyzE/D6 fKDxPlbhcwF5b3CkBrUuFLLL7Chnpmr+uWD7v4TZVpVPxIwYByDrn46Zze9u9y6YnVcn Q5CqCKA9lkDJJ5puZ5PhlcfxaXnVHhsL/wXEM= MIME-Version: 1.0 Received: by 10.231.167.139 with SMTP id q11mr2911405iby.63.1272486330404; Wed, 28 Apr 2010 13:25:30 -0700 (PDT) Received: by 10.231.150.18 with HTTP; Wed, 28 Apr 2010 13:25:30 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Apr 2010 16:25:30 -0400 Message-ID: Subject: [PATCH] Added get-list-type option to gconftool, which was missing. From: James To: gconf-list@gnome.org Content-Type: multipart/mixed; boundary=001636c92f21b49293048551cff8 X-BeenThere: gconf-list@gnome.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of the GConf library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 20:26:11 -0000 --001636c92f21b49293048551cff8 Content-Type: text/plain; charset=UTF-8 Hey all, I use gconftool-2, and I realized it was missing an option, so I wrote the appropriate patch. Please review and be gentle, since I am not a seasoned gconf contributor. I'm not 100% familiar with all of the gnome build specifics, and had trouble building this to test. I believe this is due to an unrelated issue. Please let me know and thanks!, _James [patch attached] --001636c92f21b49293048551cff8 Content-Type: application/octet-stream; name="0001-Added-get-list-type-option-to-gconftool-which-was-mi.patch" Content-Disposition: attachment; filename="0001-Added-get-list-type-option-to-gconftool-which-was-mi.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g6mck5li RnJvbSBlNTAwMWU1ZWU3Mzg4MjdmNGRmYTA5ZjMwMmE5ZTY3MjE3MWRkMGZkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBKYW1lcyBTaHViaW4gPHB1cnBsZWlkZWFAZ21haWwuY29tPgpE YXRlOiBXZWQsIDEwIE1hciAyMDEwIDExOjI1OjM2IC0wNTAwClN1YmplY3Q6IFtQQVRDSF0gQWRk ZWQgZ2V0LWxpc3QtdHlwZSBvcHRpb24gdG8gZ2NvbmZ0b29sLCB3aGljaCB3YXMgbWlzc2luZy4K Ci0tLQogZ2NvbmYvZ2NvbmZ0b29sLmMgfCAgIDYwICsrKysrKysrKysrKysrKysrKysrKysrKysr KysrKysrKysrKysrKysrKysrKysrKysrKysrCiAxIGZpbGVzIGNoYW5nZWQsIDYwIGluc2VydGlv bnMoKyksIDAgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZ2NvbmYvZ2NvbmZ0b29sLmMgYi9n Y29uZi9nY29uZnRvb2wuYwppbmRleCA5NDI3NGFmLi5lYTAxYTZlIDEwMDY0NAotLS0gYS9nY29u Zi9nY29uZnRvb2wuYworKysgYi9nY29uZi9nY29uZnRvb2wuYwpAQCAtMzI4LDYgKzMyOCwxNSBA QCBzdGF0aWMgY29uc3QgR09wdGlvbkVudHJ5IHR5cGVfZW50cmllc1tdID0gewogICAgIE5fKCJH ZXQgYSBzcGVjaWZpYyBlbGVtZW50IGZyb20gYSBsaXN0IGtleSwgbnVtZXJpY2FsbHkgaW5kZXhl ZC4iKSwKICAgICBOVUxMCiAgIH0sCisgIHsKKyAgICAiZ2V0LWxpc3QtdHlwZSIsCisgICAgJ1ww JywKKyAgICAwLAorICAgIEdfT1BUSU9OX0FSR19OT05FLAorICAgICZnZXRfbGlzdF9lbGVtZW50 X21vZGUsCisgICAgTl8oIlByaW50IHRoZSBkYXRhIHR5cGUgb2YgdGhlIGxpc3Qga2V5cyB0byBz dGFuZGFyZCBvdXRwdXQuIiksCisgICAgTlVMTAorICB9LAogICB7IAogICAgICJsaXN0LXR5cGUi LAogICAgICdcMCcsCkBAIC01NDksNiArNTU4LDcgQEAgc3RhdGljIGludCBkb190b2dnbGUoR0Nv bmZFbmdpbmUqIGNvbmYsIGNvbnN0IGdjaGFyKiogYXJncyk7CiBzdGF0aWMgaW50IGRvX2dldF90 eXBlKEdDb25mRW5naW5lKiBjb25mLCBjb25zdCBnY2hhcioqIGFyZ3MpOwogc3RhdGljIGludCBk b19nZXRfbGlzdF9zaXplKEdDb25mRW5naW5lKiBjb25mLCBjb25zdCBnY2hhcioqIGFyZ3MpOwog c3RhdGljIGludCBkb19nZXRfbGlzdF9lbGVtZW50KEdDb25mRW5naW5lKiBjb25mLCBjb25zdCBn Y2hhcioqIGFyZ3MpOworc3RhdGljIGludCBkb19nZXRfbGlzdF90eXBlKEdDb25mRW5naW5lKiBj b25mLCBjb25zdCBnY2hhcioqIGFyZ3MpOwogc3RhdGljIGludCBkb19zZXRfc2NoZW1hKEdDb25m RW5naW5lKiBjb25mLCBjb25zdCBnY2hhcioqIGFyZ3MpOwogc3RhdGljIGludCBkb19hbGxfZW50 cmllcyhHQ29uZkVuZ2luZSogY29uZiwgY29uc3QgZ2NoYXIqKiBhcmdzKTsKIHN0YXRpYyBpbnQg ZG9fdW5zZXQoR0NvbmZFbmdpbmUqIGNvbmYsIGNvbnN0IGdjaGFyKiogYXJncyk7CkBAIC0xMTI4 LDYgKzExMzgsMTUgQEAgbWFpbiAoaW50IGFyZ2MsIGNoYXIqKiBhcmd2KQogICAgICAgICB9CiAg ICAgfQogCisgIGlmIChnZXRfbGlzdF9lbGVtZW50X21vZGUpCisgICAgeworICAgICAgaWYgKGRv X2dldF9saXN0X3R5cGUgKGNvbmYsIGFyZ3MpID09IDEpCisgICAgICAgIHsKKyAgICAgICAgICBn Y29uZl9lbmdpbmVfdW5yZWYgKGNvbmYpOworICAgICAgICAgIHJldHVybiAxOworICAgICAgICB9 CisgICAgfQorCiAgIGlmIChzZXRfc2NoZW1hX21vZGUpCiAgICAgewogICAgICAgaWYgKGRvX3Nl dF9zY2hlbWEoY29uZiwgYXJncykgPT0gMSkKQEAgLTIzNjAsNiArMjM3OSw0NyBAQCBkb19nZXRf bGlzdF9lbGVtZW50KEdDb25mRW5naW5lKiBjb25mLCBjb25zdCBnY2hhcioqIGFyZ3MpCiAgIHJl dHVybiAwOwogfSAKIAorc3RhdGljIGludAorZG9fZ2V0X2xpc3RfdHlwZShHQ29uZkVuZ2luZSog Y29uZiwgY29uc3QgZ2NoYXIqKiBhcmdzKQoreworICBHRXJyb3IqIGVyciA9IE5VTEw7CisgIEdD b25mVmFsdWUgKmxpc3QgPSBOVUxMOworCisgIGlmIChhcmdzID09IE5VTEwgfHwgKmFyZ3MgPT0g TlVMTCkKKyAgICB7CisgICAgICBnX3ByaW50ZXJyIChfKCJNdXN0IHNwZWNpZnkgYSBrZXkgZnJv bSB3aGljaCB0byBnZXQgbGlzdCB0eXBlLlxuIikpOworICAgICAgcmV0dXJuIDE7CisgICAgfQor CisgIGxpc3QgPSBnZXRfbWF5YmVfd2l0aG91dF9kZWZhdWx0IChjb25mLCAqYXJncywgJmVycik7 CisKKyAgaWYgKGxpc3QgPT0gTlVMTCkKKyAgICB7CisgICAgICBpZiAoZXJyID09IE5VTEwpCisJ eworCSAgZ19wcmludGVyciAoXygiTm8gdmFsdWUgc2V0IGZvciBgJXMnXG4iKSwgKmFyZ3MpOwor CX0KKyAgICAgIGVsc2UKKwl7CisJICBnX3ByaW50ZXJyIChfKCJGYWlsZWQgdG8gZ2V0IHZhbHVl IGZvciBgJXMnOiAlc1xuIiksICphcmdzLCBlcnItPm1lc3NhZ2UpOworCSAgZ19lcnJvcl9mcmVl IChlcnIpOworCSAgZXJyID0gTlVMTDsKKwl9CisKKyAgICAgIHJldHVybiAxOworICAgIH0KKwor ICBpZiAobGlzdC0+dHlwZSAhPSBHQ09ORl9WQUxVRV9MSVNUKQorICAgIHsKKyAgICAgIGdfcHJp bnRlcnIgKF8oIktleSAlcyBpcyBub3QgYSBsaXN0LlxuIiksICphcmdzKTsKKyAgICAgIHJldHVy biAxOworICAgIH0KKworICBnX3ByaW50KCIlc1xuIiwgZ2NvbmZfdmFsdWVfdHlwZV90b19zdHJp bmcoZ2NvbmZfdmFsdWVfZ2V0X2xpc3RfdHlwZShsaXN0KSkpOworCisgIHJldHVybiAwOworfQor CiBlbnVtCiB7CiAgIFNDSEVNQV9JTkZPX1NIT1JUX0RPQ1MsCi0tIAoxLjYuMy4zCgo= --001636c92f21b49293048551cff8--