From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6Eoz-0001qw-Vw for guix-patches@gnu.org; Sat, 29 Sep 2018 08:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6Eou-0008KN-AP for guix-patches@gnu.org; Sat, 29 Sep 2018 08:58:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6Eot-0008Jk-Rp for guix-patches@gnu.org; Sat, 29 Sep 2018 08:58:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g6Eot-00069M-Pc for guix-patches@gnu.org; Sat, 29 Sep 2018 08:58:03 -0400 Subject: [bug#32872] [PATCH] gnu: LibreOffice: Fix GtkFileChooserDialog. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6Enw-0001GJ-Ju for guix-patches@gnu.org; Sat, 29 Sep 2018 08:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6Enr-0007oC-Jq for guix-patches@gnu.org; Sat, 29 Sep 2018 08:57:04 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:50391) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g6Enr-0007nR-BM for guix-patches@gnu.org; Sat, 29 Sep 2018 08:56:59 -0400 Received: from jasmine.lan (50-207-9-204-static.hfc.comcastbusiness.net [50.207.9.204]) by mail.messagingengine.com (Postfix) with ESMTPA id A55FEE474F for ; Sat, 29 Sep 2018 08:56:54 -0400 (EDT) From: Leo Famulari Date: Sat, 29 Sep 2018 08:56:50 -0400 Message-Id: <8351ca4e6f107a0f20b0441507ecb6ab7aa30856.1538225757.git.leo@famulari.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32872@debbugs.gnu.org Without this, LibreOffice crashes on a foreign distro when the "file open" dialog is launched. I think there *must* be a better solution but until we identify it, we should fix the crash. I'm Currently building this to test it. * gnu/packages/libreoffice.scm (libreoffice)[arguments]: Add 'wrap-program' phase. --- gnu/packages/libreoffice.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 35d49b021..198d4a625 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -1087,7 +1087,18 @@ converting QuarkXPress file format. It supports versions 3.1 to 4.1.") (mkdir-p (string-append out "/share/icons/hicolor")) (copy-recursively "sysui/desktop/icons/hicolor" (string-append out "/share/icons/hicolor"))) - #t))) + #t)) + (add-after 'bin-and-desktop-install 'wrap-programs + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (for-each (lambda (file) + (wrap-program file + `("GSETTINGS_SCHEMA_DIR" = + (,(string-append (assoc-ref inputs "gtk+") + "/share/glib-2.0/schemas")))) + (find-files bin))) + #t)))) #:configure-flags (list "--enable-release-build" -- 2.19.0