window icon does not work with all dialogs

Bug #998491 reported by Hizoka on 2012-05-12
This bug affects 4 people
Affects Status Importance Assigned to Milestone
zenity (Ubuntu)

Bug Description


This commands does not work :
zenity --color-selection --window-icon "/usr/share/zenity/zenity.png"
zenity --password --window-icon "/usr/share/zenity/zenity.png"
zenity --forms --window-icon "/usr/share/zenity/zenity.png" --add-entry "Test"

No error but the window icon is not that specified.

apt-cache policy zenity => 3.4.0-0ubuntu4
lsb_release -rd => Ubuntu 12.04 LTS

Robert Roth (evfool) on 2012-05-15
Changed in zenity (Ubuntu):
status: New → Confirmed
importance: Undecided → Low (tuxfusion) wrote :

Same story with icon-name:

zenity --warning --icon-name "/usr/share/zenity/zenity.png"

shows big questionmark , where icon should be. Version zenity 3.8.0-1 , Arch Linux

Paul Whittaker (launchpad-pdw) wrote :

According to strace here,

  zenity --info --window-icon /usr/share/zenity/zenity.png

makes a successful call to open() on the supplied filename (/usr/share/zenity/zenity.png), but then also calls open() on -- and displays -- the standard "white i on a blue disc" icon from /usr/share/icons/Humanity/status/48/dialog-information.svg.

Changing the supplied filename to one more similar to the file displayed above, e.g. to /usr/share/icons/Humanity/status/48/dialog-error.svg, makes no difference to this behaviour.

Ubuntu 12.04.2 LTS
zenity 3.4.0-0ubuntu4

Paul Whittaker (launchpad-pdw) wrote :

Further to the above, this also fails when supplying one of the short arguments to --window-icon, as mentioned in the man page.

For me, passing in a value from the list given (error, info, question, or warning) results in one of the files


being accessed with open(), but then following that the file


is still loaded and displayed, as before.

robdanet (mailatony) wrote :

Ubuntu 14.04.2 LTS
zenity 3.8.0

this bug is still present.

The only way I managed to handle an icon with zenity is with --notification as follow

$ cat

cat <<EOH| zenity --notification --listen
icon: /usr/share/icons/gnome/32x32/categories/applications-internet.png
message: this is the message text
tooltip: this is the tooltip text

this create two notification dialogs (right top corner in Unity) with the icon appearing to the left of the text.
No luck with dialogs and form-based widgets.

John Scott (fuzzytoothpaste) wrote :

Still present in Ubuntu 14.04.2. When will this be fixed? I'm trying to make a Zenity-based open-source project only to realize I won't be able to work with it. Very disappointing. That's what Canonical should be working on. Debugging.

Roald Fernandez (contacd) wrote :

This isn't really a bug, as far as I understand it.

The documentation might be a bit confusing, but it says that the parameter --window-icon sets the "window icon". Which is exactly what it does. However, this icon isn't usually shown (though you can confirm it has been set using `xprop`), which gives the impression that perhaps this parameter should allow to change image in the info/warning/message/question dialogs.

In fact, the TODO file lists this as one of the future tasks:

* Would be nice to have an option to use your own icon in the info/warning/message/question dialogs
   - Suggested by Kevin Krinke <email address hidden>

However, if this is to be considered a bug, and that --window-icon should not only set the gtk window icon, but also the displayed image, then the attached patch fixes it (for zenity-3.14.0).

The attachment "Patch so that window-icon also sets image in info/warning/message/question dialogs." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers