GTK Ubuntu Precise packaging success

darxus at darxus at
Wed Apr 18 08:07:02 PDT 2012

On 04/18, darxus at wrote:
> When I tried using the Ubuntu GTK+ 3.4.1 source and only
> applying the patches to default to X11 output before Wayland
> ( and remove the
> cairo-gl dependency (,
> all applications segfault when I attempt to run them through Wayland.

> That PPA is here:

It turns out this one works fine, after you put 
"export LIBOVERLAY_SCROLLBAR=0" in your ~/.bashrc .
Thanks to seb128.

These packages should be quite clean, since they're just the Ubuntu
packages plus two patch sets (default to X before Wayland, remove cairo-gl
dependency) and adding the two build flags to enable the Wayland backend
(without disabling the X backend), both pulled from GTK git master.
They're also not showing the graphical glitching I was getting with the
packages based on GTK git master.

Bonus, GTK themes are working now, so GTK applications are looking much
nicer in Wayland.

Keep in mind it's entirely possible this will break stuff.  But using it
works something like this:

Install Ubuntu Precise.

echo "export LIBOVERLAY_SCROLLBAR=0" >> ~/.bashrc
sudo apt-get install ppa-purge
sudo apt-get update && sudo apt-get upgrade
sudo apt-add-repository ppa:darxus/wayland-gtk
sudo apt-get update && sudo apt-get upgrade # should only upgrade gtk packages


In one gnome-terminal, run:

export XDG_RUNTIME_DIR=/tmp # Put in ~/.bashrc?

In another gnome-terminal, run:

export XDG_RUNTIME_DIR=/tmp
export GDK_BACKEND=wayland
gnome-calculator &
gnome-terminal &
file-roller &
charmap &
gnome-sudoku &
gwibber &
transmission-gtk &
brasero &
gnome-sound-recorder &
baobab &
gedit &
rhythmbox &
gnome-system-monitor &

To revert all changes:

sudo ppa-purge ppa:darxus/wayland-gtk # Nice 'n tidy.

Please do let me know what GTK applications you find do and don't work, so
I can update

And, of course, let me know how the packages work.

I have it on good authority that this stuff will never make it into Ubuntu
Precise, not even as an SRU (Stable Release Update).  But I can't imagine
why it wouldn't make the October Ubuntu release.  

"Begin at the beginning and go on till you come to the end; then stop."
- Lewis Carrol, Alice in Wonderland

More information about the wayland-devel mailing list