[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run
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 |
Hi,
On Sun, 5 Aug 2018 21:57:15 +1000
Brendan Tildesley <address@hidden> wrote:
> On 08/05/18 10:23, Danny Milosavljevic wrote:
> > Hi Brendan,
> >
> > On Thu, 2 Aug 2018 16:21:02 +1000
> > Brendan Tildesley <address@hidden> 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?
>
> ca.desrt.dconf.service
> org.freedesktop.IBus.service
> org.gnome.FileRoller.ArchiveManager1.service
> org.gtk.vfs.Daemon.service
> org.gtk.vfs.UDisks2VolumeMonitor.service
> org.a11y.Bus.service
^^^^ Okay.
> org.freedesktop.portal.IBus.service
> org.gnome.FileRoller.service
> org.gtk.vfs.GPhoto2VolumeMonitor.service org.xfce.FileManager.service
> org.fcitx.Fcitx.service
> org.freedesktop.Telepathy.Client.Vinagre.service
> org.gnome.Nautilus.service
> org.gtk.vfs.Metadata.service org.xfce.Thunar.service
> org.freedesktop.FileManager1.service
> org.gnome.evince.Daemon.service
^^^^ Okay.
> org.gnome.Rhythmbox3.service
> org.gtk.vfs.MTPVolumeMonitor.service
>
> >
> > What is the environment variable XDG_DATA_DIRS set to?
> /home/b/.guix-profile/share:/run/current-system/profile/share:/home/b/.guix-profile/share:/run/current-system/profile/share
>
> (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/<pid>/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
>
> (pcmanfm:1051): Gtk-WARNING **: 20:10:52.604: Unable to locate theme
> engine in module_path: "adwaita",
>
> (pcmanfm:1051): Gtk-WARNING **: 20:10:52.605: Unable to locate theme
> engine in module_path: "adwaita",
>
> (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=/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 environment
> > variable is not set or the executable mentioned inside the service file
> > is not found.
> >
> > For better debugging, try:
> >
> > youruser$ export DBUS_VERBOSE=1
> > youruser$ evince
> >
> > And post the result here.
> ** (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/30v35016yw7nr0r9778k585vc1g7wsn8-dbus-1.12.2/bin/dbus-daemon
--config-file=/gnu/store/yj5plxmgaxsa1in6nx202a5xsz3y33yp-at-spi2-core-2.26.2/share/defaults/at-spi2/accessibility.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?
pgpn3ciPiY3iD.pgp
Description: OpenPGP digital signature
- Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch, Brendan Tildesley, 2018/08/02
- Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch, Danny Milosavljevic, 2018/08/04
- Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch, Danny Milosavljevic, 2018/08/04
- Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch, Brendan Tildesley, 2018/08/05
- Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch,
Danny Milosavljevic <=