GNU bug report logs - #55634
inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE

Previous Next

Package: guix;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Wed, 25 May 2022 14:09:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55634 in the body.
You can then email your comments to 55634 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#55634; Package guix. (Wed, 25 May 2022 14:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxime Devos <maximedevos <at> telenet.be>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 25 May 2022 14:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: bug-guix <at> gnu.org
Subject: inkscape does not find icons, needs wrapping or such for
 GDK_PIXBUF_MODULE_FILE
Date: Wed, 25 May 2022 16:08:25 +0200
[Message part 1 (text/plain, inline)]
Broken:

$ guix shell --pure inkscape -- inkscape

(crashes on start with ‘Inkscape encountered an internal error and will
close now’.)

Work-around:

$ guix shell --pure inkscape gdk-pixbuf -- inkscape

also works:

$ guix shell --pure inkscape gdk-pixbuf -- /usr/bin/env GDK_PIXBUF_MODULE_FILE=/gnu/store/[...]-profile/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache inkscape

Looks like some wrapping is required to point GDK_PIXBUF_MODULE_FILE to an appropriate 'loaders.cache'.

Also starts in a non-pure environment without adding extra packages, but then the icons aren't found.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#55634; Package guix. (Tue, 12 Jul 2022 19:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 55634 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 55634 <at> debbugs.gnu.org
Subject: Re: bug#55634: inkscape does not find icons, needs wrapping or such
 for GDK_PIXBUF_MODULE_FILE
Date: Tue, 12 Jul 2022 15:32:48 -0400
Hi,

Maxime Devos <maximedevos <at> telenet.be> writes:

> Broken:
>
> $ guix shell --pure inkscape -- inkscape
>
> (crashes on start with ‘Inkscape encountered an internal error and will
> close now’.)
>
> Work-around:
>
> $ guix shell --pure inkscape gdk-pixbuf -- inkscape
>
> also works:
>
> $ guix shell --pure inkscape gdk-pixbuf -- /usr/bin/env
> GDK_PIXBUF_MODULE_FILE=/gnu/store/[...]-profile/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
> inkscape

I'm surprised gdk-pixbuf is enough; I would have expected you need to
add adwaita-icon-theme and librsvg (for the SVG pixbuf loader).  I guess
it has all the icons already but doesn't have even a non-svg loader.

The annoying part with GDK_PIXBUF_MODULE_FILE is that if we wrap it, it
can't be extended by the user given the variable takes a single value;
so suppose we wrap it without librsvg, then Inkscape will loose the
ability to load the SVG version of its icon, which probably look better
on high resolution displays.

Currently, I think we also cannot add librsvg to inkscape inputs, as it
would introduce a cycle; we'd have to come up with a new minimal variant
used by dblatex.

I guess we could have a minimal and a full-blown version of Inkscape,
the later which would include librsvg and wrap GDK_PIXBUF_MODULE_FILE.

Thanks,

Maxim





Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 13 Jul 2022 03:31:02 GMT) Full text and rfc822 format available.

Notification sent to Maxime Devos <maximedevos <at> telenet.be>:
bug acknowledged by developer. (Wed, 13 Jul 2022 03:31:02 GMT) Full text and rfc822 format available.

Message #13 received at 55634-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 55634-done <at> debbugs.gnu.org
Subject: Re: bug#55634: inkscape does not find icons, needs wrapping or such
 for GDK_PIXBUF_MODULE_FILE
Date: Tue, 12 Jul 2022 23:30:44 -0400
Hi Maxime,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

[...]

> I guess we could have a minimal and a full-blown version of Inkscape,
> the later which would include librsvg and wrap GDK_PIXBUF_MODULE_FILE.

I've now implemented this, upgrading Inkscape to 1.2 in the process.
See commits 023259c4bd1a38225fb1c06660c0cf393210e811,
7dcba233a3745cfdcc291adf46261548eb2f3d76 and
b1523ffac597d56ab9657ab1c1b1a7fc49344d67.

It's now possible to 'guix shell --pure inkscape -- inkscape'!

Thanks for the report.

Closing.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#55634; Package guix. (Sat, 23 Jul 2022 10:42:02 GMT) Full text and rfc822 format available.

Message #16 received at 55634-done <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 55634-done <at> debbugs.gnu.org
Subject: Re: bug#55634: inkscape does not find icons, needs wrapping or such
 for GDK_PIXBUF_MODULE_FILE
Date: Sat, 23 Jul 2022 12:41:29 +0200
[Message part 1 (text/plain, inline)]
On 13-07-2022 05:30, Maxim Cournoyer wrote:
> [...]
> I've now implemented this, upgrading Inkscape to 1.2 in the process.
> See commits 023259c4bd1a38225fb1c06660c0cf393210e811,
> 7dcba233a3745cfdcc291adf46261548eb2f3d76 and
> b1523ffac597d56ab9657ab1c1b1a7fc49344d67.
>
> It's now possible to 'guix shell --pure inkscape -- inkscape'!

I can confirm it works!

Thanks,
Maxime.

[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 20 Aug 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.