GTK Ubuntu Precise packaging success

darxus at chaosreigns.com darxus at chaosreigns.com
Wed Apr 18 08:07:02 PDT 2012


On 04/18, darxus at chaosreigns.com wrote:
> When I tried using the Ubuntu GTK+ 3.4.1 source and only
> applying the patches to default to X11 output before Wayland
> (https://bugzilla.gnome.org/show_bug.cgi?id=674102) and remove the
> cairo-gl dependency (https://bugzilla.gnome.org/show_bug.cgi?id=672361),
> all applications segfault when I attempt to run them through Wayland.

> That PPA is here: https://launchpad.net/~darxus/+archive/wayland-gtk

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

Reboot.  

In one gnome-terminal, run:

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

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 http://www.chaosreigns.com/wayland/works/

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
http://www.ChaosReigns.com


More information about the wayland-devel mailing list