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: Mon, 13 Aug 2018 00:09:07 +0200 Message-ID: <20180813000907.291dc7cb@scratchpost.org> References: <2c04ce67-5606-35b3-4f26-7d4c349af97e@openmailbox.org> <20180731235419.7b824b45@scratchpost.org> <4cb02345-ff28-02e5-63f7-3df78585e4b9@openmailbox.org> <20180805022322.730e2df2@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Ya4dYm9hAbLaYq2r1x4gl=T"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foyY6-0001qZ-LI for guix-devel@gnu.org; Sun, 12 Aug 2018 18:09:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foyY2-0005gc-Kk for guix-devel@gnu.org; Sun, 12 Aug 2018 18:09:22 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:35158) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1foyY2-0005g3-9B for guix-devel@gnu.org; Sun, 12 Aug 2018 18:09:18 -0400 In-Reply-To: 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_/Ya4dYm9hAbLaYq2r1x4gl=T Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, On Sun, 5 Aug 2018 21:57:15 +1000 Brendan Tildesley wrote: > On 08/05/18 10:23, Danny Milosavljevic wrote: > > Hi Brendan, > > > > On Thu, 2 Aug 2018 16:21:02 +1000 > > Brendan Tildesley wrote: > > =20 > >> I've always had gvfs installed and it hasn't made any difference as far > >> as I can tell =20 > > Hmm, what does your ~/.guix-profile/share/dbus-1/services directory con= tain? =20 >=20 > ca.desrt.dconf.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 > org.freedesktop.IBus.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0 > org.gnome.FileRoller.ArchiveManager1.service=A0 > org.gtk.vfs.Daemon.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 > org.gtk.vfs.UDisks2VolumeMonitor.service > org.a11y.Bus.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ^^^^ Okay. > org.freedesktop.portal.IBus.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 > org.gnome.FileRoller.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 > org.gtk.vfs.GPhoto2VolumeMonitor.service=A0 org.xfce.FileManager.service > org.fcitx.Fcitx.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 > org.freedesktop.Telepathy.Client.Vinagre.service=A0 > org.gnome.Nautilus.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 > org.gtk.vfs.Metadata.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 org.x= fce.Thunar.service > org.freedesktop.FileManager1.service=A0 > org.gnome.evince.Daemon.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 ^^^^ Okay. > org.gnome.Rhythmbox3.service=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0 > org.gtk.vfs.MTPVolumeMonitor.service >=20 > > > > What is the environment variable XDG_DATA_DIRS set to? =20 > /home/b/.guix-profile/share:/run/current-system/profile/share:/home/b/.gu= ix-profile/share:/run/current-system/profile/share >=20 > (Not sure why it's repeated twice.) Okay. To compare, try this: $ ps $(pgrep -U `id -u` '^dbus-daemon$') |grep session |grep -v /run/user/ Notice the PID (first column) and then do: $ cat /proc//environ |tr '\0' '\n' |grep XDG Is the result the same? > ** (pcmanfm:1051): WARNING **: 20:10:52.602: XDG_TEMPLATES_DIR is set to > invalid path, ignoring it >=20 > (pcmanfm:1051): Gtk-WARNING **: 20:10:52.604: Unable to locate theme > engine in module_path: "adwaita", >=20 > (pcmanfm:1051): Gtk-WARNING **: 20:10:52.605: Unable to locate theme > engine in module_path: "adwaita", >=20 > (pcmanfm:1051): Gtk-WARNING **: 20:10:52.606: Unable to locate theme > engine in module_path: "murrine", Hmm, I tried to find where it explicitly looks up "adwaita" and "murrine" in pcmanfm, but I couldn't find it. Can you try the following? $ export XDG_TEMPLATES_DIR=3D/tmp $ gdb --args pcmanfm --g-fatal-warnings (gdb) r ... wait until it crashes (gdb) bt and post the result here. It should make it possible for us to find out where the "lookup" instruction is. > > I suspect that the gvfs service file is either not there, the environme= nt > > 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. =20 > ** (evince:1019): WARNING **: 20:07:46.869: Error retrieving > accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: > The name org.a11y.Bus was not provided by any .service files > Error registering document: > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name > org.gnome.evince.Daemon was not provided by any .service files Aha! Accessibility bus! I've checked, I have another dbus process for accessibility here: $ ps -ef |grep accessibility.conf dannym 600 596 0 Aug12 ? 00:00:00 /gnu/store/30v35016yw7nr0r9= 778k585vc1g7wsn8-dbus-1.12.2/bin/dbus-daemon --config-file=3D/gnu/store/yj5= plxmgaxsa1in6nx202a5xsz3y33yp-at-spi2-core-2.26.2/share/defaults/at-spi2/ac= cessibility.conf --nofork --print-address 3 Do you have it? For finding out, try: $ ps -ef |grep accessibility.conf If you have it, what does its /proc/.../environ contain? --Sig_/Ya4dYm9hAbLaYq2r1x4gl=T Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAltwsAQACgkQ5xo1VCww uqXeiwf/RjyhfIOPTnuoZY5iaJmRnQ+Kqz0Cydoe6u+JLuySiMY1rBSECcYDWBjX OgaRxYP7UeWfep3O6WXrrp3XYxc07rXcVqIN0zfkWphdHa5eXBy95qr4RfguvrgY z1ECOF4gUDB6f0fxq3pSsx6ZwmNZuvHVLTC1MlA5h1/r3a6zA2bg6OAdT2aa77E2 4xOLUhjZi9k+5XBoDb7uYl5+C972+zaX7ubd73DlCkCKU/NoIy+PFu7Ktoyz8x54 /nUh02GZj3v0B1tSE6qycgoutUf5kUeYvLDQA1b5xUZ5fiLE6Ze1f1aQWfLXVMP1 QYkF4OIhJ87SBVFrOWqMDszcd6jgaQ== =h5Ky -----END PGP SIGNATURE----- --Sig_/Ya4dYm9hAbLaYq2r1x4gl=T--