Pino Toscano
2017-Mar-20 12:51 UTC
[Libguestfs] [PATCH] inspect: get a better icon for ALT Linux guests (RHBZ#1433937)
Use a 64px icon which is in the menu-icons-default package, hopefully part of the default installation of any flavour. Updates commit 9928296c1ca8df5bd8f108ed00039adc6468cac3. Thanks to: Xiang Hua Chen. --- lib/inspect-icon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inspect-icon.c b/lib/inspect-icon.c index 84d4e4a..695f038 100644 --- a/lib/inspect-icon.c +++ b/lib/inspect-icon.c @@ -455,7 +455,7 @@ icon_voidlinux (guestfs_h *g, struct inspect_fs *fs, size_t *size_r) return get_png (g, fs, VOIDLINUX_ICON, size_r, 20480); } -#define ALTLINUX_ICON "/usr/share/doc/alt-docs/altlogo.png" +#define ALTLINUX_ICON "/usr/share/icons/hicolor/64x64/apps/altlinux.png" static char * icon_altlinux (guestfs_h *g, struct inspect_fs *fs, size_t *size_r) -- 2.9.3
Richard W.M. Jones
2017-Mar-20 13:16 UTC
Re: [Libguestfs] [PATCH] inspect: get a better icon for ALT Linux guests (RHBZ#1433937)
On Mon, Mar 20, 2017 at 01:51:01PM +0100, Pino Toscano wrote:> Use a 64px icon which is in the menu-icons-default package, hopefully > part of the default installation of any flavour. > > Updates commit 9928296c1ca8df5bd8f108ed00039adc6468cac3. > > Thanks to: Xiang Hua Chen. > --- > lib/inspect-icon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/inspect-icon.c b/lib/inspect-icon.c > index 84d4e4a..695f038 100644 > --- a/lib/inspect-icon.c > +++ b/lib/inspect-icon.c > @@ -455,7 +455,7 @@ icon_voidlinux (guestfs_h *g, struct inspect_fs *fs, size_t *size_r) > return get_png (g, fs, VOIDLINUX_ICON, size_r, 20480); > } > > -#define ALTLINUX_ICON "/usr/share/doc/alt-docs/altlogo.png" > +#define ALTLINUX_ICON "/usr/share/icons/hicolor/64x64/apps/altlinux.png" > > static char * > icon_altlinux (guestfs_h *g, struct inspect_fs *fs, size_t *size_r) > -- > 2.9.3ACK. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Reasonably Related Threads
- [PATCH] inspect: get icon of Gentoo guests
- [PATCH 0/3] library: improve handling of external tools
- [PATCH] inspect: get icon of OpenMandriva guests
- [PATCH v2 0/3] library: improve handling of external tools
- [PATCH 1/3] inspect: recognize the Void Linux distribution