Subject: bug#30642: LibreOffice crashes with 'org.gtk.Settings.FileChooser' is not installed error

From: Maxim Cournoyer <[email-masked]>
Date: Tue, 27 Feb 2018 21:54:32 -0500

Hello,

I've installed LibreOffice but it always crashes when clicking on the 'Open
File' button (or File -> Open) with the error:

$ libreoffice

--8<---------------cut here---------------start------------->8---
** (soffice:16241): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files

(soffice:16241): Gtk-WARNING **: Could not find the icon 'list-remove-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases

(soffice:16241): GLib-GIO-ERROR **: Settings schema
'org.gtk.Settings.FileChooser' is not installed
--8<---------------cut here---------------end--------------->8---

Workaround found: As recommended by Ricardo on #guix, I've tried the
following:

--8<---------------cut here---------------start------------->8---
export GSETTINGS_SCHEMA_DIR=/gnu/store/0wq9xddbgv3y959dhk0njasbi8zr4d8a-gtk+-3.22.21/share/glib-2.0/schemas
--8<---------------cut here---------------end--------------->8---

And it resolved the problem. Should we be wrapping our libreoffice
launch scripts with this environment variable, like we do for our utox
and wxmaxima packages?

For reference, the software installed in my user profile are those:

--8<---------------cut here---------------start------------->8---
emacs-dvc	trunk-1.591	out	/gnu/store/sraxmg5qz9i4338s4ks7asgy4v68dgqs-emacs-dvc-trunk-1.591
python-jedi	0.9.0	out	/gnu/store/wlz9vmlr2ml83j095903iw8p8yiq5qgv-python-jedi-0.9.0
font-dejavu	2.37	out	/gnu/store/knzhrdlih3y4pndp6b40j7ab3w3kgk7z-font-dejavu-2.37
font-google-roboto	2.136	out	/gnu/store/0fjqhfk890627ynlv3a8iph8ndm69njj-font-google-roboto-2.136
gnu-standards	2016-03-25	out	/gnu/store/a96v3pzak0sqx3bm8593nrjnmhk7hnf4-gnu-standards-2016-03-25
hunspell-dict-fr	6.1	out	/gnu/store/ljijhjr6pfqh7nijy5p0ka5rzjby43d3-hunspell-dict-fr-6.1
aspell-dict-fr	0.50-3	out	/gnu/store/jrwkvybb6j9wygas3j9ir0fjhcz9dkpx-aspell-dict-fr-0.50-3
automake	1.15.1	out	/gnu/store/gda08c59fhyc81s8ddklndznlfjcvrr1-automake-1.15.1
arc-theme	20170302	out	/gnu/store/hdc3afchr4hdrnsil8x5wzfy81px5wnb-arc-theme-20170302
strace	4.20	out	/gnu/store/c52hdlipfc14dqg68q74gls61v6c6cxk-strace-4.20
gnupg	2.2.4	out	/gnu/store/qkjydcf9s9y3d5klsgwywd6jc6gwylfi-gnupg-2.2.4
graphviz	2.40.1	out	/gnu/store/m2hv3fvqg8g7w6d62rnqsqjfc50qf6s6-graphviz-2.40.1
bluez	5.47	out	/gnu/store/k5ziy0ixhsldc1j9bwxljnxq08bh013f-bluez-5.47
perl	5.26.0	out	/gnu/store/9g4fpfz86vjkx83v5696vm5dzg2sc9qj-perl-5.26.0
wpa-supplicant	2.6	out	/gnu/store/z8k32s0g6pfdg1argl3lipf2ljjb0g7l-wpa-supplicant-2.6
dbus	1.10.22	out	/gnu/store/mkpj0z65x7rv5kmx74wqakiwdgcal1nm-dbus-1.10.22
setxkbmap	1.3.1	out	/gnu/store/9qzfzl05aisp79syy9jplh7pm51mi6dy-setxkbmap-1.3.1
lsh	2.1	out	/gnu/store/s62ygbkjsm6fj67vjyncg9cab7mjw562-lsh-2.1
openssh	7.6p1	out	/gnu/store/vi9q396128i1vwc7rngqcsn666gfxpi2-openssh-7.6p1
adb	7.1.2_r6	out	/gnu/store/42f8if03s0w0aaw20z7b7rzh4sps4f75-adb-7.1.2_r6
make	4.2.1	out	/gnu/store/pk46ms5b922w3gksci6zcfx0rdg77vwq-make-4.2.1
xrandr	1.5.0	out	/gnu/store/40d8hx0i0ybwr8sp0rw97xga2cbfvp95-xrandr-1.5.0
font-terminus	4.40	out	/gnu/store/n8czkfqjzxkx22nlrmj9v8l3a68yiby9-font-terminus-4.40
file	5.30	out	/gnu/store/sx2zmwldcw0yj67zxqjqb3ljfqhbxqz3-file-5.30
bc	1.07.1	out	/gnu/store/gnaih4amlr4bndr27jaib4ibg1l3nym8-bc-1.07.1
xdpyinfo	1.3.2	out	/gnu/store/8pffdkw8xd3sywl4xliaqs9yz1ma1qib-xdpyinfo-1.3.2
xmodmap	1.0.9	out	/gnu/store/difdb4pr9irnqr8p7xz4ibahhm9gyf4a-xmodmap-1.0.9
xev	1.2.2	out	/gnu/store/x8i0j658kryn7dpzl17d3m1mjq4irndn-xev-1.2.2
ltrace	0.7.3	out	/gnu/store/lc9hafpbip8hgnmik16hqhgm18kfpfz3-ltrace-0.7.3
bazaar	2.7.0	out	/gnu/store/31jyz0nzi1kpvixaqdlv37wvc7r27nsf-bazaar-2.7.0
inetutils	1.9.4	out	/gnu/store/54k4zlx3azmhqydlilysirpqmhvcw8gr-inetutils-1.9.4
python	3.5.3	out	/gnu/store/h29ggyz1wsmmk220gy811hy181lszz3y-python-3.5.3
bbdb	3.1.2	out	/gnu/store/qplmwb63yrhpc7wa51xgckm4mjp1smm4-bbdb-3.1.2
font-hack	3.000	out	/gnu/store/7hn3z6apaav1dyb12qzdhsvachzw5g0d-font-hack-3.000
xrdb	1.1.0	out	/gnu/store/1fcj55k9g4q879jmy5kzb799md779jgw-xrdb-1.1.0
xsetroot	1.1.1	out	/gnu/store/4zzk4kmwbzjsjci9gr6ja8znwgd5s078-xsetroot-1.1.1
unzip	6.0	out	/gnu/store/ksxfj4a16gxqizk6d7s51kli1qgj56bs-unzip-6.0
hunspell	1.6.1	out	/gnu/store/m38q97lbxpa567xkyv255fsy75s4jjf4-hunspell-1.6.1
autoconf	2.69	out	/gnu/store/sv9yr2yzzy0n3cnhg8f7njb4166l04zj-autoconf-2.69
aspell-dict-en	2017.08.24-0	out	/gnu/store/6cn16c2l2gydr0ws3qxx3yjv7ffq7633-aspell-dict-en-2017.08.24-0
aspell	0.60.6.1	out	/gnu/store/9dcgz8gxdly55q6l3s5rir4yi6h8gnrg-aspell-0.60.6.1
ghostscript-with-x	9.21	out	/gnu/store/b3jsaklygddxghc5cxm20zv39kzlix7p-ghostscript-with-x-9.22
bridge-utils	1.5	out	/gnu/store/frd778r2fp20kxwm2zlrgywpyqkgb549-bridge-utils-1.5
global	6.6.1	out	/gnu/store/7v339a3rahx17vph4gazdwsdw7jjcmnj-global-6.6.1
sicp	20170703-1.225c172	out	/gnu/store/hsgd526psnzgv77b57kdqabndg6swysf-sicp-20170703-1.225c172
stow	2.2.2	out	/gnu/store/9nqkrnsm0r6jbcs98q371sq3p94jyis3-stow-2.2.2
gxtuner	2.4	out	/gnu/store/v4fds4yf4wz27c1spn502pi7i3l7i9hr-gxtuner-2.4
vim	8.0.1428	out	/gnu/store/gmawfiw8kwnsdzjwyfr8bffhgm0lzz2l-vim-8.0.1428
mesa-utils	8.3.0	out	/gnu/store/7b4v07xgcadlf5w8nd2v4hpm7h4yzsmi-mesa-utils-8.3.0
dosfstools	4.1	out	/gnu/store/dn8w25kcm3f7lhyzx0608rl96kfhwmil-dosfstools-4.1
dconf	0.26.1	out	/gnu/store/azq0p4dz8h6r2b2dcicvzjgnj0g08qim-dconf-0.26.1
pinentry	1.1.0	out	/gnu/store/z2gqg648i6pwjv3w33g0a3bbz5986blr-pinentry-1.1.0
gnome-themes-standard	3.22.3	out	/gnu/store/2kfnm4nxi3177lv97q1a4fvwsr7kyb5p-gnome-themes-standard-3.22.3
gtk-engines	2.20.2	out	/gnu/store/zanfydxyz4wr0i9rjr9p9yjqppca2ggw-gtk-engines-2.20.2
geeqie	1.3	out	/gnu/store/glnq3cfalvxfym9x8mi2rk6x7y7fnh2q-geeqie-1.3
gimp	2.8.22	out	/gnu/store/6xin8j9bflf3caz8i4sfzsdkwcwpd7vz-gimp-2.8.22
biber	2.7	out	/gnu/store/5vak1l4m0056y35ij8lylc66yyix2ws9-biber-2.7
inkscape	0.92.2	out	/gnu/store/0712rfcnbymvc5m8n1618gil2j9cb081-inkscape-0.92.2
xournal	0.4.8	out	/gnu/store/12g85iif843q3ljq8zachcalcpdqck8z-xournal-0.4.8
abiword	3.0.2	out	/gnu/store/n9bhgp6nsy2i4ghiy5qyrpvr521as0g0-abiword-3.0.2
pkg-config	0.29.2	out	/gnu/store/k5d9w7n12aa0gp7hrhgcigqz5y3shj1y-pkg-config-0.29.2
emacs-yasnippet-snippets	1-1.885050d3	out	/gnu/store/vy37qa7nr4k3zkb6pic1j9bn139ib1ba-emacs-yasnippet-snippets-1-1.885050d3
emacs-ggtags	0.8.12	out	/gnu/store/4i5c74a42ip92lyjm4akvba8r1m7wlqz-emacs-ggtags-0.8.12
emacs-ws-butler	0.6	out	/gnu/store/qgv837fnv4mhcx4kkqlzhvxys7jcqgjl-emacs-ws-butler-0.6
emacs-grep-a-lot	1.0.7	out	/gnu/store/bv4h1x8l4xrpkpg9mpbjy76y67ksj5xm-emacs-grep-a-lot-1.0.7
emacs-csv-mode	1.7	out	/gnu/store/j565h23m1p44y6yh6qgx88074a6p0dyc-emacs-csv-mode-1.7
emacs-string-inflection	1.0.6	out	/gnu/store/iz7m51vrn5iw0lzm30d12x2655y5dgvh-emacs-string-inflection-1.0.6
emacs-diff-hl	1.8.4	out	/gnu/store/zww0sxm6d82apxwv9vgxl69qmbi8zy1h-emacs-diff-hl-1.8.4
wget	1.19.4	out	/gnu/store/bpkaysrqxs7yfkn6cmpnra43b4s9wz59-wget-1.19.4
curl	7.58.0	out	/gnu/store/g5sw0cb5d3azijmg0apg486dkw8znic3-curl-7.58.0
recutils	1.7	out	/gnu/store/l9n5bmgprhz6f8cj7xzmab1r4sb7cxap-recutils-1.7
gdb	8.1	out	/gnu/store/n3034gxwb4hkmr1x5v8wdkzq0hyjyb9y-gdb-8.1
weechat	2.0.1	out	/gnu/store/7b0l99z8awfxpqcwxy2d7a5vsniyxid1-weechat-2.0.1
gcc-toolchain	7.3.0	out	/gnu/store/9bhar5am66k0df0m2gznys7dpdmzyxqx-gcc-toolchain-7.3.0
emacs-el-mock	1.25.1	out	/gnu/store/a6qprwc9bb0kch0iaajv8yryis015pf0-emacs-el-mock-1.25.1
parted	3.2	out	/gnu/store/73fs2ggx6y1wgdak1w5pdwirm4laq1cw-parted-3.2
cryptsetup	1.7.5	out	/gnu/store/0x1hi8xiwhz2ssrkqi1swkvisihspkwh-cryptsetup-1.7.5
rsync	3.1.3	out	/gnu/store/xp4fhqcmb0hg783znyxnqk2w42i9dyjj-rsync-3.1.3
rtorrent	0.9.6	out	/gnu/store/0pix01p38zdc5cslbi26sbdh01l3kws4-rtorrent-0.9.6
emacs-realgud	1.4.4	out	/gnu/store/88g52bgjc34zjwmk2v705gy52in1ffla-emacs-realgud-1.4.4
transmission	2.93	gui	/gnu/store/vqzqiwbsialkxaa821ah730xqp60lway-transmission-2.93-gui
transmission	2.93	out	/gnu/store/7isrbpc25ybr172c9735r76rbmix83gr-transmission-2.93
vinagre	3.22.0	out	/gnu/store/0mss7x40zdjqfri043vj3fhb44r6b581-vinagre-3.22.0
imagemagick	6.9.9-34	out	/gnu/store/f5w5cd0wfvyqz0x1xcphcjrhkq951rwj-imagemagick-6.9.9-34
mpv	0.28.0	out	/gnu/store/s90h3bn6k62yfw89nkz6srka8qp2p7sy-mpv-0.28.0
gnucash	2.6.19	out	/gnu/store/b9i89acy3gh57c3i8437nr4bqfvnx9bf-gnucash-2.6.19
emacs-guix	0.3.4	out	/gnu/store/64ad6wgrnq2xncvjywrim9v78hvwz0y6-emacs-guix-0.3.4
icecat	52.3.0-gnu1	out	/gnu/store/a806xqblj2sbr2k55fyzwi2zqkwa7r4c-icecat-52.3.0-gnu1
pulseaudio	11.0	out	/gnu/store/79v60abd82bfnlsvvpg1dp381mmrz6lg-pulseaudio-11.0
emacs-pdf-tools	0.80	out	/gnu/store/rc7mq085sjrzrl29kfrda9i1336n1ksm-emacs-pdf-tools-0.80
murrine	0.98.2	out	/gnu/store/hkc99qgxh5wh6cphf33244qfd7vgdnzn-murrine-0.98.2
keepassxc	2.2.4	out	/gnu/store/2adj9501h29k7c0q6ln07jgkdcr4r77w-keepassxc-2.2.4
git	2.16.1	send-email	/gnu/store/gmc8smrrq357c4j5mpl21dbg2m28244j-git-2.16.1-send-email
bind	9.12.0	utils	/gnu/store/bsm1cwgdc1dw0psazrdrjqpc7d7h20dv-bind-9.12.0-utils
git	2.16.1	out	/gnu/store/pzwgvyshb4qabn0k1rn2y3v6z1icy01j-git-2.16.1
emacs-auctex	12.1.0	out	/gnu/store/82ihw2w4wvccym8an0z6g7jr1v0wj6y2-emacs-auctex-12.1.0
emacs-debbugs	0.15	out	/gnu/store/k2zzp3gdbgdw8y38fcw8asy92d5mj170-emacs-debbugs-0.15
guile	2.2.3	out	/gnu/store/gwspk20b7fbrs4l5rzgaadf8896h12bq-guile-2.2.3
libmtp	1.1.14	out	/gnu/store/yw288pm0p09qfgn0sial0wys1dirw6sa-libmtp-1.1.14
libx11	1.6.5	out	/gnu/store/9pdzf82v781948gv48ndzbb3qa810df8-libx11-1.6.5
glibc-locales	2.25	out	/gnu/store/y81gbp5lrjiydj5xj7sczx73vnkprzkv-glibc-locales-2.25
evince	3.26.0	out	/gnu/store/pb3bjhpbli6rf7gs48acxyplfyysxxg1-evince-3.26.0
qemu	2.10.2	out	/gnu/store/2x9pj3y2x5qcwzjzavdpqq3m0ph81xdm-qemu-2.10.2
emacs-emms-player-mpv	0.0.10	out	/gnu/store/12mcpw708ff1j9vzsh7wbqmxmfwxy20g-emacs-emms-player-mpv-0.0.10
emacs-emms	4.4	out	/gnu/store/hzy81wqqck9krnq702d25ypd99bjj7d9-emacs-emms-4.4
emacs-org	20180103	out	/gnu/store/55zj7610f2vmjp2qwfa7fr2afc3w30qn-emacs-org-20180103
emacs	25.3	out	/gnu/store/y335nx4r08m6kg0yrna7spfwr4s05n36-emacs-25.3
mcron2	1.0.8-0.31baff1	out	/gnu/store/crjpf9cgs917n1a2gnn7jsl06bqhcg4n-mcron2-1.0.8-0.31baff1
emacs-company	0.9.3	out	/gnu/store/pk8v2br1a3vzji3vym58n1q2061x3h56-emacs-company-0.9.3
emacs-company-quickhelp	2.3.0	out	/gnu/store/xix7rq95zx2fhdpn9vansjaf8ch6zai7-emacs-company-quickhelp-2.3.0
emacs-yasnippet	0.12.2	out	/gnu/store/l2q85sn0yy9c7j7mslrws1i9jd92m98f-emacs-yasnippet-0.12.2
emacs-elpy	1.18.0	out	/gnu/store/lyr0r2f4c9sam2ba0h3sxcrxk07jmh6w-emacs-elpy-1.18.0
python-wrapper	3.5.3	out	/gnu/store/wi6rs9yhwcg148s2sa228msdv700hg3v-python-wrapper-3.5.3
emacs-paredit	24	out	/gnu/store/mig2s4dj7wf9jg9qhbf570m7yi48hgn0-emacs-paredit-24
magit	2.11.0	out	/gnu/store/lv7lllq8cgq0c9bnpyfgp4k6yax6nb6z-magit-2.11.0
libreoffice	5.3.7.2	out     /gnu/store/cdxjrxsmly78dlf4m6gqdfrx8a5xnn51-libreoffice-5.3.7.2
--8<---------------cut here---------------end--------------->8---

Thanks,

Maxim