inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE

  • Done
  • quality assurance status badge
Details
2 participants
  • Maxim Cournoyer
  • Maxime Devos
Owner
unassigned
Submitted by
Maxime Devos
Severity
normal
M
M
Maxime Devos wrote on 25 May 2022 16:08
(address . bug-guix@gnu.org)
0db9db95c05d2785d0b2e6b7b32a2b6a3770df1c.camel@telenet.be
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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYo44WRccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7o+XAQD8MDP/zVlolEcwdo7nIRwfd76O
nYNXRuLfmhuQHdaTBQEA8UTzzZ1xfd/IPVnpbKXbSSdnkNhuPfhAGPkbezrFLAA=
=iCWe
-----END PGP SIGNATURE-----


M
M
Maxim Cournoyer wrote on 12 Jul 2022 21:32
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 55634@debbugs.gnu.org)
874jzm6s9r.fsf@gmail.com
Hi,

Maxime Devos <maximedevos@telenet.be> writes:

Toggle quote (17 lines)
> 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
M
M
Maxim Cournoyer wrote on 13 Jul 2022 05:30
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 55634-done@debbugs.gnu.org)
87zghd4rkr.fsf@gmail.com
Hi Maxime,

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

[...]

Toggle quote (3 lines)
> 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
Closed
M
M
Maxime Devos wrote on 23 Jul 2022 12:41
(name . Maxim Cournoyer)(address . maxim.cournoyer@gmail.com)(address . 55634-done@debbugs.gnu.org)
6abcfd32-fdd7-dbba-dbc0-9f2ada253241@telenet.be
On 13-07-2022 05:30, Maxim Cournoyer wrote:
Toggle quote (7 lines)
> [...]
> 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.
Attachment: OpenPGP_signature
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 55634@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 55634
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch