From: "Clément Lassieur" <clement@lassieur.org>
To: 26593@debbugs.gnu.org
Subject: bug#26593: [PATCH] gnu: icecat: Fix GTK 3 file chooser crash.
Date: Fri, 21 Apr 2017 20:18:31 +0200 [thread overview]
Message-ID: <87o9vpzkso.fsf@lassieur.org> (raw)
In-Reply-To: <20170421175540.19672-1-clement@lassieur.org>
Clément Lassieur <clement@lassieur.org> writes:
> * gnu/packages/gnuzilla.scm (icecat)[arguments]: Add a 'wrap-xdgdatadirs'
> phase to set XDG_DATA_DIRS.
> ---
> gnu/packages/gnuzilla.scm | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
> index 91bb0a6a7..3b8c80d2c 100644
> --- a/gnu/packages/gnuzilla.scm
> +++ b/gnu/packages/gnuzilla.scm
> @@ -750,7 +750,16 @@ standards.")
> (copy-file file (string-append icons "/icecat.png"))))
> '("default16.png" "default22.png" "default24.png"
> "default32.png" "default48.png" "content/icon64.png"
> - "mozicon128.png" "default256.png")))))))))
> + "mozicon128.png" "default256.png"))))))
> + ;; This fixes the file chooser crash that happens with GTK 3.
> + (add-after 'install 'wrap-xdgdatadirs
^
I guess I should rename it to 'wrap-program, and update changelog
accordingly.
> + (lambda* (#:key inputs outputs #:allow-other-keys)
> + (let* ((out (assoc-ref outputs "out"))
> + (lib (string-append out "/lib"))
> + (gtk (assoc-ref inputs "gtk+"))
> + (gtk-share (string-append gtk "/share")))
> + (wrap-program (car (find-files lib "^icecat$"))
> + `("XDG_DATA_DIRS" ":" prefix (,gtk-share)))))))))
> (home-page "https://www.gnu.org/software/gnuzilla/")
> (synopsis "Entirely free browser derived from Mozilla Firefox")
> (description
prev parent reply other threads:[~2017-04-21 18:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-21 17:55 bug#26593: [PATCH] gnu: icecat: Fix GTK 3 file chooser crash Clément Lassieur
2017-04-21 18:18 ` Clément Lassieur [this message]
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=87o9vpzkso.fsf@lassieur.org \
--to=clement@lassieur.org \
--cc=26593@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).