From: Leo Famulari <leo@famulari.name>
To: 32872@debbugs.gnu.org
Subject: [bug#32872] [PATCH] gnu: LibreOffice: Fix GtkFileChooserDialog.
Date: Sat, 29 Sep 2018 08:56:50 -0400 [thread overview]
Message-ID: <8351ca4e6f107a0f20b0441507ecb6ab7aa30856.1538225757.git.leo@famulari.name> (raw)
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
next reply other threads:[~2018-09-29 12:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-29 12:56 Leo Famulari [this message]
2018-09-29 22:05 ` [bug#32872] [PATCH] gnu: LibreOffice: Fix GtkFileChooserDialog Ludovic Courtès
2018-09-30 11:42 ` Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8351ca4e6f107a0f20b0441507ecb6ab7aa30856.1538225757.git.leo@famulari.name \
--to=leo@famulari.name \
--cc=32872@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).