all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60205: Dino lacks some icons
@ 2022-12-19 16:14 Tirifto
  2022-12-19 21:06 ` Liliana Marie Prikler
  2022-12-20 21:31 ` bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells Liliana Marie Prikler
  0 siblings, 2 replies; 7+ messages in thread
From: Tirifto @ 2022-12-19 16:14 UTC (permalink / raw)
  To: 60205

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

Hello! I am running Guix as a supplementary package manager on openSUSE 
Leap 15.4, and have used it to install the GTK3 XMMP client Dino (package 
‘dino’, version 0.3.1). The program seems to work fine, but some icons don’t 
show up in the graphical user interface. Some of them do (plus symbol, 
hamburger menu, security lock), but other show a placeholder instead (phone 
call), while some of them don’t show up at all (checkboxes, window control 
buttons, i.e. maximise, minimise, close). Please see the attached pictures 
(‘chat.png’ and ‘settings.png’) for reference.

Here is the terminal ouput after running ‘dino’:

  Gtk-Message: 17:06:11.398: Failed to load module "colorreload-gtk-module"
  Gtk-Message: 17:06:11.398: Failed to load module "window-decorations-gtk-
module"
  Gtk-Message: 17:06:11.398: Failed to load module "appmenu-gtk-module"
  
  ** (dino:17647): CRITICAL **: 17:06:11.642: file /tmp/guix-build-
dino-0.3.1.drv-0/dino-0.3.1/main/src/ui/main_window.vala: line 68: uncaught 
error: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
  
  (dino:17647): Gtk-WARNING **: 17:06:11.676: Found an icon but could not load 
it. Most likely gdk-pixbuf does not provide SVG support.
  
  (dino:17647): Gtk-WARNING **: 17:06:11.680: Could not load a pixbuf from 
icon theme.
  This may indicate that pixbuf loaders or the mime database could not be 
found.

Here is the output of ‘guix describe’:

  guix describe
  Generation 4    pro 17 2022 14:18:38    (current)
    guix 491bddf
      repository URL: https://git.savannah.gnu.org/git/guix.git
      branch: master
      commit: 491bddfa276cc9775adf325c07e5f82638f330e7

Guix usually tries to tell me when I have to do extra steps after installing a 
package, but it says nothing this time around, so I presume this is a bug. Any 
help would be appreciated!

Best of wishes
// Tirifto

[-- Attachment #2: chat.png --]
[-- Type: image/png, Size: 1611 bytes --]

[-- Attachment #3: settings.png --]
[-- Type: image/png, Size: 2921 bytes --]

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

* bug#60205: Dino lacks some icons
  2022-12-19 16:14 bug#60205: Dino lacks some icons Tirifto
@ 2022-12-19 21:06 ` Liliana Marie Prikler
  2022-12-20 13:56   ` Joshua Branson via Bug reports for GNU Guix
  2022-12-20 21:31 ` bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells Liliana Marie Prikler
  1 sibling, 1 reply; 7+ messages in thread
From: Liliana Marie Prikler @ 2022-12-19 21:06 UTC (permalink / raw)
  To: Tirifto, 60205

Am Montag, dem 19.12.2022 um 16:14 +0000 schrieb Tirifto:
>   ** (dino:17647): CRITICAL **: 17:06:11.642: file /tmp/guix-build-
> dino-0.3.1.drv-0/dino-0.3.1/main/src/ui/main_window.vala: line 68:
> uncaught 
> error: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
>   
>   (dino:17647): Gtk-WARNING **: 17:06:11.676: Found an icon but could
> not load 
> it. Most likely gdk-pixbuf does not provide SVG support.
>   
>   (dino:17647): Gtk-WARNING **: 17:06:11.680: Could not load a pixbuf
> from 
> icon theme.
>   This may indicate that pixbuf loaders or the mime database could
> not be found.
These two lines appear to mark the most likely culprit.  Now, normally
our gdk-pixbuf packages do support svg, but there's some strings
attached.  Most of our GNOME related programs are tested in a GNOME
environment rather than a pure one, which means that things that
shouldn't work happen to do.  Compare the output of

  guix shell --pure -E DISPLAY dino librsvg adwaita-icon-theme -- dino

to

  guix shell --pure -E DISPLAY dino -- dino

Note that librsvg is a regular input to dino and should thus be
available as a pixbuf loader.  I'm not sure what exactly is wrong here
(perhaps dino should swap its librsvg input for gdk-pixbuf), but
another caveat is that on non-x86_64 systems we are forced to use a
pre-Rust version of librsvg, which barfs on some particular input
files.

Hope that helps.

Cheers





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

* bug#60205: Dino lacks some icons
  2022-12-19 21:06 ` Liliana Marie Prikler
@ 2022-12-20 13:56   ` Joshua Branson via Bug reports for GNU Guix
  2022-12-29 13:49     ` Tirifto
  0 siblings, 1 reply; 7+ messages in thread
From: Joshua Branson via Bug reports for GNU Guix @ 2022-12-20 13:56 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: Tirifto, 60205

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

> Am Montag, dem 19.12.2022 um 16:14 +0000 schrieb Tirifto:
>>   ** (dino:17647): CRITICAL **: 17:06:11.642: file /tmp/guix-build-
>> dino-0.3.1.drv-0/dino-0.3.1/main/src/ui/main_window.vala: line 68:
>> uncaught 
>> error: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
>>   
>>   (dino:17647): Gtk-WARNING **: 17:06:11.676: Found an icon but could
>> not load 
>> it. Most likely gdk-pixbuf does not provide SVG support.
>>   
>>   (dino:17647): Gtk-WARNING **: 17:06:11.680: Could not load a pixbuf
>> from 
>> icon theme.
>>   This may indicate that pixbuf loaders or the mime database could
>> not be found.
> These two lines appear to mark the most likely culprit.  Now, normally
> our gdk-pixbuf packages do support svg, but there's some strings
> attached.  Most of our GNOME related programs are tested in a GNOME
> environment rather than a pure one, which means that things that
> shouldn't work happen to do.  Compare the output of
>
>   guix shell --pure -E DISPLAY dino librsvg adwaita-icon-theme -- dino
>
> to
>
>   guix shell --pure -E DISPLAY dino -- dino
>
> Note that librsvg is a regular input to dino and should thus be
> available as a pixbuf loader.  I'm not sure what exactly is wrong here
> (perhaps dino should swap its librsvg input for gdk-pixbuf), but
> another caveat is that on non-x86_64 systems we are forced to use a
> pre-Rust version of librsvg, which barfs on some particular input
> files.
>

Just quoting bug 48636:

I have adwaita-icon-theme and hicolor-icon-theme in my system profile,
which I think makes some gtk stuff play nicer. I would suggest
installing them if you don't have them. I also have
gnome-themes-standard and gnome-themes-extra, so those may also be worth
installing if the other things don't do the trick.

Perhaps the hicolor icons should be made a dependency so users don't
have to figure this out on their own. I recall another package getting
that treatment a while back.

End quote

Perhaps dino should have hicolor-icon-theme as a dependency.



>
> Hope that helps.
>
> Cheers




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

* bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells.
  2022-12-19 16:14 bug#60205: Dino lacks some icons Tirifto
  2022-12-19 21:06 ` Liliana Marie Prikler
@ 2022-12-20 21:31 ` Liliana Marie Prikler
  2022-12-21 19:37   ` jbranso--- via Bug reports for GNU Guix
  1 sibling, 1 reply; 7+ messages in thread
From: Liliana Marie Prikler @ 2022-12-20 21:31 UTC (permalink / raw)
  To: 60205; +Cc: Tirifto, Joshua Branson

* gnu/packages/messaging.scm (dino)[#:phases]: Add
‘generate-gdk-pixbuf-loaders-cache-file’.
<wrap>: Also wrap “GDK_PIXBUF_MODULE_FILE”.
[inputs]: Add adwaita-icon-theme.
---
 gnu/packages/messaging.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 27a68439ef..7b693a07fa 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -1398,13 +1398,18 @@ (define-public dino
            #:phases
            #~(modify-phases %standard-phases
                ;; For A/V support.
+               (add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file
+                 (assoc-ref glib-or-gtk:%standard-phases
+                            'generate-gdk-pixbuf-loaders-cache-file))
                (add-after 'install 'wrap
                  (lambda* (#:key outputs #:allow-other-keys)
                    (let* ((out (assoc-ref outputs "out"))
                           (dino (string-append out "/bin/dino"))
                           (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
                      (wrap-program dino
-                       `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))
+                       `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
+                       `("GDK_PIXBUF_MODULE_FILE" =
+                         (,(getenv "GDK_PIXBUF_MODULE_FILE")))))))
                (add-after 'install 'glib-or-gtk-wrap
                  (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
                (replace 'check
@@ -1421,7 +1426,8 @@ (define-public dino
            pkg-config
            vala))
     (inputs
-     (list atk
+     (list adwaita-icon-theme
+           atk
            cairo
            librsvg
            glib
-- 
2.38.1





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

* bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells.
  2022-12-20 21:31 ` bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells Liliana Marie Prikler
@ 2022-12-21 19:37   ` jbranso--- via Bug reports for GNU Guix
  2022-12-31  7:34     ` Liliana Marie Prikler
  0 siblings, 1 reply; 7+ messages in thread
From: jbranso--- via Bug reports for GNU Guix @ 2022-12-21 19:37 UTC (permalink / raw)
  To: Liliana Marie Prikler, 60205; +Cc: Tirifto

December 20, 2022 4:34 PM, "Liliana Marie Prikler" <liliana.prikler@gmail.com> wrote:

I will add this to my to do list.  To test this patch and see if helps dino
display its icons.  

Thanks,

Joshua

> * gnu/packages/messaging.scm (dino)[#:phases]: Add
> ‘generate-gdk-pixbuf-loaders-cache-file’.
> <wrap>: Also wrap “GDK_PIXBUF_MODULE_FILE”.
> [inputs]: Add adwaita-icon-theme.
> ---
> gnu/packages/messaging.scm | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
> index 27a68439ef..7b693a07fa 100644
> --- a/gnu/packages/messaging.scm
> +++ b/gnu/packages/messaging.scm
> @@ -1398,13 +1398,18 @@ (define-public dino
> #:phases
> #~(modify-phases %standard-phases
> ;; For A/V support.
> + (add-after 'unpack 'generate-gdk-pixbuf-loaders-cache-file
> + (assoc-ref glib-or-gtk:%standard-phases
> + 'generate-gdk-pixbuf-loaders-cache-file))
> (add-after 'install 'wrap
> (lambda* (#:key outputs #:allow-other-keys)
> (let* ((out (assoc-ref outputs "out"))
> (dino (string-append out "/bin/dino"))
> (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
> (wrap-program dino
> - `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))))
> + `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))
> + `("GDK_PIXBUF_MODULE_FILE" =
> + (,(getenv "GDK_PIXBUF_MODULE_FILE")))))))
> (add-after 'install 'glib-or-gtk-wrap
> (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))
> (replace 'check
> @@ -1421,7 +1426,8 @@ (define-public dino
> pkg-config
> vala))
> (inputs
> - (list atk
> + (list adwaita-icon-theme
> + atk
> cairo
> librsvg
> glib
> -- 
> 2.38.1




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

* bug#60205: Dino lacks some icons
  2022-12-20 13:56   ` Joshua Branson via Bug reports for GNU Guix
@ 2022-12-29 13:49     ` Tirifto
  0 siblings, 0 replies; 7+ messages in thread
From: Tirifto @ 2022-12-29 13:49 UTC (permalink / raw)
  To: Liliana Marie Prikler, Joshua Branson; +Cc: 60205

On úterý 20. prosince 2022 14:56:55 CET you wrote:
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
> > Am Montag, dem 19.12.2022 um 16:14 +0000 schrieb Tirifto:
> >>   ** (dino:17647): CRITICAL **: 17:06:11.642: file /tmp/guix-build-
> >> dino-0.3.1.drv-0/dino-0.3.1/main/src/ui/main_window.vala: line 68:
> >> uncaught
> >> error: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
> >>  
> >>   (dino:17647): Gtk-WARNING **: 17:06:11.676: Found an icon but could
> >> not load
> >> it. Most likely gdk-pixbuf does not provide SVG support.
> >>  
> >>   (dino:17647): Gtk-WARNING **: 17:06:11.680: Could not load a pixbuf
> >> from
> >> icon theme.
> >>   This may indicate that pixbuf loaders or the mime database could
> >> not be found.
> > 
> > These two lines appear to mark the most likely culprit.  Now, normally
> > our gdk-pixbuf packages do support svg, but there's some strings
> > attached.  Most of our GNOME related programs are tested in a GNOME
> > environment rather than a pure one, which means that things that
> > shouldn't work happen to do.  Compare the output of
> > 
> >   guix shell --pure -E DISPLAY dino librsvg adwaita-icon-theme -- dino
> > 
> > to
> > 
> >   guix shell --pure -E DISPLAY dino -- dino
> > 
> > Note that librsvg is a regular input to dino and should thus be
> > available as a pixbuf loader.  I'm not sure what exactly is wrong here
> > (perhaps dino should swap its librsvg input for gdk-pixbuf), but
> > another caveat is that on non-x86_64 systems we are forced to use a
> > pre-Rust version of librsvg, which barfs on some particular input
> > files.
> 
> Just quoting bug 48636:
> 
> I have adwaita-icon-theme and hicolor-icon-theme in my system profile,
> which I think makes some gtk stuff play nicer. I would suggest
> installing them if you don't have them. I also have
> gnome-themes-standard and gnome-themes-extra, so those may also be worth
> installing if the other things don't do the trick.
> 
> Perhaps the hicolor icons should be made a dependency so users don't
> have to figure this out on their own. I recall another package getting
> that treatment a while back.
> 
> End quote
> 
> Perhaps dino should have hicolor-icon-theme as a dependency.

Thank you both for your help! I have done some experimenting with the provided 
information. When I run the following command:

  guix shell --pure -E DISPLAY dino librsvg adwaita-icon-theme -- dino

Dino displays perfectly well, only with the Adwaita theme. I use KDE, so I 
thought installing a matching theme might allow it to match the host system. 
And indeed, after adding the packages ‘breeze’, ‘breeze-gtk’, and ‘breeze-
icons’ into my profile, Dino runs with the correct theme and icons. I assume 
it’s always a good idea to install the theme you’re using in Guix also.

The window control buttons still wouldn‘t show up until I installed ‘librsvg’ 
and incorporated it into my profile. As for ‘hicolor-icon-theme’, I don’t 
think it has had an effect on Dino; icons were still missing with only 
hicolor-icon-theme provided.

> > Hope that helps.
> > 
> > Cheers

Thank you both for your help, my issue has now been solved; although perhaps 
this ticket should remain open until it’s solved in Guix by default?

Best of wishes
// Tirifto






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

* bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells.
  2022-12-21 19:37   ` jbranso--- via Bug reports for GNU Guix
@ 2022-12-31  7:34     ` Liliana Marie Prikler
  0 siblings, 0 replies; 7+ messages in thread
From: Liliana Marie Prikler @ 2022-12-31  7:34 UTC (permalink / raw)
  To: jbranso, 60205-done; +Cc: Tirifto

Am Mittwoch, dem 21.12.2022 um 19:37 +0000 schrieb jbranso@dismail.de:
> December 20, 2022 4:34 PM, "Liliana Marie Prikler"
> <liliana.prikler@gmail.com> wrote:
> 
> I will add this to my to do list.  To test this patch and see if
> helps dino display its icons.  
You can test it on master now ;)

Cheers




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

end of thread, other threads:[~2022-12-31  8:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-19 16:14 bug#60205: Dino lacks some icons Tirifto
2022-12-19 21:06 ` Liliana Marie Prikler
2022-12-20 13:56   ` Joshua Branson via Bug reports for GNU Guix
2022-12-29 13:49     ` Tirifto
2022-12-20 21:31 ` bug#60205: [PATCH] gnu: dino: Fix icons when used in pure shells Liliana Marie Prikler
2022-12-21 19:37   ` jbranso--- via Bug reports for GNU Guix
2022-12-31  7:34     ` Liliana Marie Prikler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.