From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch Date: Sun, 5 Aug 2018 02:23:22 +0200 Message-ID: <20180805022322.730e2df2@scratchpost.org> References: <2c04ce67-5606-35b3-4f26-7d4c349af97e@openmailbox.org> <20180731235419.7b824b45@scratchpost.org> <4cb02345-ff28-02e5-63f7-3df78585e4b9@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/OTxxFRbjWbnldGnR+gVkEjE"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fm6pc-0007fG-4t for guix-devel@gnu.org; Sat, 04 Aug 2018 20:23:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fm6pY-0007wg-Vu for guix-devel@gnu.org; Sat, 04 Aug 2018 20:23:36 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:45392) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fm6pY-0007vx-Nf for guix-devel@gnu.org; Sat, 04 Aug 2018 20:23:32 -0400 In-Reply-To: <4cb02345-ff28-02e5-63f7-3df78585e4b9@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Brendan Tildesley Cc: guix-devel --Sig_/OTxxFRbjWbnldGnR+gVkEjE Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Brendan, On Thu, 2 Aug 2018 16:21:02 +1000 Brendan Tildesley wrote: > I've always had gvfs installed and it hasn't made any difference as far > as I can tell Hmm, what does your ~/.guix-profile/share/dbus-1/services directory contain? What is the environment variable XDG_DATA_DIRS set to? > Previously there was no $DBUS_SESSION_BUS_ADDRESS.=20 Ok, then no dbus was running and that's bad for the clients of dbus. They = try to autorun dbus in that case - but I've never seen that actually working :P >After I modified slim > to add dbus-launch, I have > DBUS_SESSION_BUS_ADDRESS=3Dunix:abstract=3D/tmp/dbus-Rc7AP3Xnzz,guid=3D97= d26aba11773a9ce755829b5b611375 Okay, so now there's a session bus now. Progress :) > but it didn't fix the issue, and caused those weird errors. Actually I'm > not getting those errors anymore, maybe due to reconfiguring and > rebooting.=20 Even more progress :) >When I run `dbus-launch bash` , it overwrites that value with > a new value in the current environment: > unix:abstract=3D/tmp/dbus-1vzMgxAURi,guid=3D98eb63bd2e22340a0c1d3bd85b611= 6d5 Yeah, as I said, now you have a tiny session even though you had a big sess= ion already. This isn't as useless as it sounds - it would make sense in conta= iners etc. > =A0and then running pcmanfm/evince only from that bash shell works fine, > running outside it or from dmenu doesn't. If you are motivated, I suggest to try to proceed to get the version without "dbus-launch bash" (but with slim configured to use dbus-launch) to work. It can't be missing much now. I suspect that the gvfs service file is either not there, the environment variable is not set or the executable mentioned inside the service file is not found. For better debugging, try: youruser$ export DBUS_VERBOSE=3D1 youruser$ evince And post the result here. --Sig_/OTxxFRbjWbnldGnR+gVkEjE Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAltmQ3oACgkQ5xo1VCww uqUhiAgAlRIcvjYcf97UpLuV/fbn6m+9rRjnymsDXwrVdJpoL6Oxjc67zjetmeCK cKBLKAv19tevxOSidwWtVleUCiAP1Hjd1xxKMr1fji3IJebeFUifStBp5MsxM87c ZAWiVg8NOvoIlQvqOGXsmpL4XchPMwZlo0Y2AnwrnEP98d4H7gmTeHV+51o39Nu5 QNY8cLRiET0ote3gqizT4ir6eDhkI/9lPHidddvyD+0IJeCghA09GNIYriVgfuBh b0xYA4xq49ukqMu245II3PTY2sHoxIYG/ZUy30wlRnPMGuNar2J0kiOfRU6p+mb+ n6JMOuFue1u5NzNPBYbKfCxbu87sgA== =hd7x -----END PGP SIGNATURE----- --Sig_/OTxxFRbjWbnldGnR+gVkEjE--