unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55634: inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE
@ 2022-05-25 14:08 Maxime Devos
  2022-07-12 19:32 ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Maxime Devos @ 2022-05-25 14:08 UTC (permalink / raw)
  To: 55634

[-- Attachment #1: Type: text/plain, Size: 623 bytes --]

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.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55634: inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE
  2022-05-25 14:08 bug#55634: inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE Maxime Devos
@ 2022-07-12 19:32 ` Maxim Cournoyer
  2022-07-13  3:30   ` Maxim Cournoyer
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2022-07-12 19:32 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 55634

Hi,

Maxime Devos <maximedevos@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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55634: inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE
  2022-07-12 19:32 ` Maxim Cournoyer
@ 2022-07-13  3:30   ` Maxim Cournoyer
  2022-07-23 10:41     ` Maxime Devos
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Cournoyer @ 2022-07-13  3:30 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 55634-done

Hi Maxime,

Maxim Cournoyer <maxim.cournoyer@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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#55634: inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE
  2022-07-13  3:30   ` Maxim Cournoyer
@ 2022-07-23 10:41     ` Maxime Devos
  0 siblings, 0 replies; 4+ messages in thread
From: Maxime Devos @ 2022-07-23 10:41 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 55634-done


[-- Attachment #1.1.1: Type: text/plain, Size: 396 bytes --]


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.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 929 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-23 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-25 14:08 bug#55634: inkscape does not find icons, needs wrapping or such for GDK_PIXBUF_MODULE_FILE Maxime Devos
2022-07-12 19:32 ` Maxim Cournoyer
2022-07-13  3:30   ` Maxim Cournoyer
2022-07-23 10:41     ` Maxime Devos

Code repositories for project(s) associated with this 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).