From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Tildesley Subject: Re: Programs like pcmanfm, evince, ... don't connect to dbus unless run with dbus-launch Date: Mon, 12 Nov 2018 21:57:08 +1100 Message-ID: References: <2c04ce67-5606-35b3-4f26-7d4c349af97e@openmailbox.org> <20180731235419.7b824b45@scratchpost.org> <4cb02345-ff28-02e5-63f7-3df78585e4b9@openmailbox.org> <20180805022322.730e2df2@scratchpost.org> <20180813000907.291dc7cb@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gM9uS-0003r2-7U for guix-devel@gnu.org; Mon, 12 Nov 2018 05:57:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gM9uK-0002ua-ET for guix-devel@gnu.org; Mon, 12 Nov 2018 05:57:34 -0500 Received: from mail-it1-x133.google.com ([2607:f8b0:4864:20::133]:33100) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gM9uH-0002mX-6e for guix-devel@gnu.org; Mon, 12 Nov 2018 05:57:26 -0500 Received: by mail-it1-x133.google.com with SMTP id p11-v6so10429486itf.0 for ; Mon, 12 Nov 2018 02:57:20 -0800 (PST) Received: from [10.1.1.62] ([14.2.153.161]) by smtp.googlemail.com with ESMTPSA id b2-v6sm4928030ioq.78.2018.11.12.02.57.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Nov 2018 02:57:18 -0800 (PST) In-Reply-To: <20180813000907.291dc7cb@scratchpost.org> Content-Language: en-AU 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: guix-devel On 08/13/18 08:09, Danny Milosavljevic wrote: > 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? b@ui ~$ ps $(pgrep -U `id -u` '^dbus-daemon$') |grep session |grep -v /run/user/   708 ?        Ss     0:00 /gnu/store/5bda3bgy871dyb9cna4k7gnz002j88rq-dbus-1.12.6/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session b@ui ~$ cat /proc/708/environ  |tr '\0' '\n' |grep XDG XDG_VTNR=7 XDG_SESSION_ID=c1 XDG_DATA_DIRS=/gnu/store/ifq7znihd687bgz4gkn9vy1dsk60k7xl-shared-mime-info-1.8/share:/gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/share:/gnu/store/hiij9hlxq53w39g0maf67b842j15kw22-gtk+-3.22.30/share:/gnu/store/6zhrh72zsfv4h8jw64rvzs3jcpm1ypmn-modem-manager-1.4.14/share:/gnu/store/n3zml7g3gfp0wgxrwqzairbqx9ab3q8l-network-manager-applet-1.8.4/share:/home/b/.guix-profile/share:/run/current-system/profile/share:/home/b/.guix-profile/share:/run/current-system/profile/share XDG_SEAT=seat0 XDG_RUNTIME_DIR=/run/user/1000 XDG_CONFIG_DIRS=/home/b/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg b@ui ~$ > >> ** (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. b@ui ~$ export XDG_TEMPLATES_DIR=/tmp b@ui ~$ gdb --args pcmanfm --g-fatal-warnings GNU gdb (GDB) 8.2 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at:     . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from pcmanfm...(no debugging symbols found)...done. (gdb) r Starting program: /gnu/store/32zqds837fjm6ql4lsk2v27hn0j3zszc-profile/bin/pcmanfm --g-fatal-warnings [Thread debugging using libthread_db enabled] Using host libthread_db library "/gnu/store/l4lr0f5cjd0nbsaaf8b5dmcw1a1yypr3-glibc-2.27/lib/libthread_db.so.1". [New Thread 0x7fffef53b700 (LWP 999)] [New Thread 0x7fffeeb2a700 (LWP 1000)] [New Thread 0x7fffee199700 (LWP 1001)] ** (pcmanfm:995): WARNING **: 18:22:56.725: XDG_TEMPLATES_DIR is set to invalid path, ignoring it Thread 1 "pcmanfm" received signal SIGTRAP, Trace/breakpoint trap. 0x00007ffff4f9b2c1 in _g_log_abort () from /gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/lib/libglib-2.0.so.0 (gdb) bt #0  0x00007ffff4f9b2c1 in _g_log_abort () from /gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/lib/libglib-2.0.so.0 #1  0x00007ffff4f9c515 in g_logv () from /gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/lib/libglib-2.0.so.0 #2  0x00007ffff4f9c662 in g_log () from /gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/lib/libglib-2.0.so.0 #3  0x00007ffff5a76345 in _fm_templates_init () from /gnu/store/4r9sh1ddhkd3qh92hxzqanjsxikzhqzi-libfm-1.3.0.2/lib/libfm.so.4 #4  0x00007ffff5a638d3 in fm_init () from /gnu/store/4r9sh1ddhkd3qh92hxzqanjsxikzhqzi-libfm-1.3.0.2/lib/libfm.so.4 #5  0x00007ffff7851691 in fm_gtk_init () from /gnu/store/4r9sh1ddhkd3qh92hxzqanjsxikzhqzi-libfm-1.3.0.2/lib/libfm-gtk.so.4 #6  0x0000000000413714 in main () (gdb) > >>> 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. There is no output >> ** (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 b          714   710  0 16:01 ?        00:00:00 /gnu/store/5bda3bgy871dyb9cna4k7gnz002j88rq-dbus-1.12.6/bin/dbus-daemon --config-file=/gnu/store/842v39q6mf31wx818s0qrqkigc7lsjv0-at-spi2-core-2.26.2/share/defaults/at-spi2/accessibility.con  --nofork --print-address 3 > > If you have it, what does its /proc/.../environ contain? b@ui ~$ cat /proc/714/environ  |tr '\0' '\n'|sort  ;;  ;;  *) } ALTERNATE_EDITOR=emacs BASH_FUNC_cycle-layout%%=() {  CURRENT=$(setxkbmap -query | grep layout | cut -d ':' -f 2- | tr -d ' '); BASH_LOADABLES_PATH=/run/current-system/profile/lib/bash  case $CURRENT in CPATH=/home/b/.guix-profile/include DBUS_FATAL_WARNINGS=0 DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-D221282NDW,guid=695c2c1ced04449c1fa91b6b5be90946 DBUS_STARTER_ADDRESS=unix:abstract=/tmp/dbus-D221282NDW,guid=695c2c1ced04449c1fa91b6b5be90946 DBUS_STARTER_BUS_TYPE=session DICPATH=/home/b/.guix-profile/share/hunspell:/run/current-system/profile/share/hunspell DISPLAY=:0.0  echo "my colemak";  echo "qwerty" EDITOR=emacsclient -nw -c -a "" $@  esac GIO_EXTRA_MODULES=/gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/lib/gio/modules:/home/b/.guix-profile/lib/gio/modules:/run/current-system/profile/lib/gio/modules GIT_EXEC_PATH=/home/b/.guix-profile/libexec/git-core GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt GST_PLUGIN_PATH=/home/b/.guix-profile/lib/gstreamer-1.0 GST_PLUGIN_SYSTEM_PATH=/home/b/.guix-profile/lib/gstreamer-1.0 GTK_DATA_PREFIX=/run/current-system/profile GTK_PATH=/gnu/store/hiij9hlxq53w39g0maf67b842j15kw22-gtk+-3.22.30/lib/gtk-3.0 GUILE_LOAD_COMPILED_PATH=/home/b/.guix-profile/lib/guile/2.2/site-ccache:/home/b/.guix-profile/share/guile/site/2.2:/run/current-system/profile/lib/guile/2.2/site-ccache:/run/current-system/profile/share/guile/site/2.2 GUILE_LOAD_PATH=/home/b/.guix-profile/share/guile/site/2.2:/run/current-system/profile/share/guile/site/2.2 GUIX_GTK3_PATH=/home/b/.guix-profile/lib/gtk-3.0 GUIX_LOCPATH=/run/current-system/locale HISTFILE=/home/b/.bash_eternal_history HISTFILESIZE=-1 HISTSIZE=-1 HISTTIMEFORMAT=[%F %T] HOME=/home/b IBUS_COMPONENT_PATH=/home/b/.guix-profile/share/ibus/component INFOPATH=/home/b/.config/guix/current/share/info:/home/b/.guix-profile/share/info:/run/current-system/profile/share/info:/home/b/.guix-profile/share/info:/run/current-system/profile/share/info LANG=en_AU.utf8 LIBRARY_PATH=/home/b/.guix-profile/lib LINUX_MODULE_DIRECTORY=/run/booted-system/kernel/lib/modules LOGNAME=b MAIL=/var/mail/b MANPATH=/run/current-system/profile/share/man:/home/b/.guix-profile/share/man:/run/current-system/profile/share/man MINETEST_SUBGAME_PATH=/home/b/.guix-profile/share/minetest/games NM_VPN_PLUGIN_DIR=/gnu/store/c5hsbhfqzbikhfg29qlp3rjbq9nv8jn6-network-manager-vpn-plugins/lib/NetworkManager/VPN PATH=/home/b/config/bin/:/run/setuid-programs:/home/b/.config/guix/current/bin:/home/b/.guix-profile/bin:/home/b/.guix-profile/sbin:/run/current-system/profile/bin:/run/current-system/profile/sbin:/home/b/.nix-profile/bin PWD=/home/b PYTHONPATH=/home/b/.guix-profile/lib/python3.6/site-packages  setxkbmap -layout "us(basic)";  setxkbmap -layout "us(colemak)"; SHELL=/gnu/store/q4b3s9y4i0da36drp7zfq9yqcf43s47v-bash-4.4.19/bin/bash SHLVL=2 SSL_CERT_DIR=/etc/ssl/certs SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt TERMINFO_DIRS=/home/b/.guix-profile/share/terminfo TERM=xterm TZDIR=/gnu/store/2b2md66fbzyspsmd5dj6zkj9hilac40r-tzdata-2018e/share/zoneinfo  "us(colemak)") USER=b VISUAL=emacsclient -c -a "" $@ XAUTHORITY=/home/b/.Xauthority XCURSOR_PATH=/home/b/.icons:/home/b/.guix-profile/share/icons:/run/current-system/profile/share/icons XDG_CONFIG_DIRS=/home/b/.guix-profile/etc/xdg:/run/current-system/profile/etc/xdg XDG_DATA_DIRS=/gnu/store/ifq7znihd687bgz4gkn9vy1dsk60k7xl-shared-mime-info-1.8/share:/gnu/store/x9lfcagl47zbb6krfpmwm31m70s9pk00-glib-2.56.0/share:/gnu/store/hiij9hlxq53w39g0maf67b842j15kw22-gtk+-3.22.30/share:/gnu/store/6zhrh72zsfv4h8jw64rvzs3jcpm1ypmn-modem-manager-1.4.14/share:/gnu/store/n3zml7g3gfp0wgxrwqzairbqx9ab3q8l-network-manager-applet-1.8.4/share:/home/b/.guix-profile/share:/run/current-system/profile/share:/home/b/.guix-profile/share:/run/current-system/profile/share XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_ID=c1 XDG_VTNR=7  xmodmap ~/.Xmodmap  xset r rate 180 90;