Using GTK+2 zenity on current Debian

last updated Feb 25. 2023


This is very satisfying. Solves a lot of dependency issues if you want to avoid gtk3.

I just used the binary because this is trivial.

# apt install libnotify4

Get your .deb from here: snapshot.debian.org

$ ar x zenity.deb
$ tar xzf control.tar.gz
Edit control:
6c6
< Depends: libc6 (>= 2.2.5), libglib2.0-0 (>= 2.24.0), libgtk2.0-0 (>= 2.16.0), libnotify1 (>= 0.4.5), libnotify1-gtk2.10, libx11-6 (>= 0)
---
> Depends: libc6 (>= 2.2.5), libglib2.0-0 (>= 2.24.0), libgtk2.0-0 (>= 2.16.0), libx11-6 (>= 0)
$ tar --ignore-failed-read -cvzf control.tar.gz {post,pre}{inst,rm} md5sums control
$ ar rcs zenity-gtk2.deb debian-binary control.tar.gz data.tar.gz
# dpkg -i zenity-gtk2.deb
# cd /usr/lib/triplet
# ln -s libnotify.so.4 libnotify.so.1

Enjoy...

I ripped off an answer from stackoverflow.