Wayland GTK Patched

PPA description

Default behavior of Ubuntu Quantal's primary interface is to try to sell things: https://bugs.launchpad.net/ubuntu/+source/unity-lens-shopping/+bug/1065720

New PPA for Quantal: https://launchpad.net/~darxus/+archive/wayland-gtk-quantal

GTK with Wayland backend enabled, without cairo-gl dependency, for bug 954352.

You need to "export LIBOVERLAY_SCROLLBAR=0" or applications will segfault when run with Wayland (bug 984914). If running under Unity you also need to rename /usr/lib/gtk-3.0/3.0.0/menuproxies/libappmenu.so (bug 994091) and "apt-get remove libcanberra-gtk3-module" (bug 996917). These problems only apply to running GTK+ applications as native Wayland clients, and do not affect running them normally as X clients.

To use:

echo "export LIBOVERLAY_SCROLLBAR=0" >> ~/.bashrc
sudo apt-get install weston ppa-purge
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-add-repository ppa:darxus/wayland-gtk
# This should only upgrade the gtk packages, including gir and gail:
sudo apt-get update && sudo apt-get dist-upgrade

Reboot (not actually necessary).

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 &
gedit &
baobab &
file-roller &
charmap &
gnome-sudoku &
gwibber &
transmission-gtk &
brasero &
gnome-sound-recorder &
rhythmbox &
gnome-system-monitor &

To revert all changes:

sudo ppa-purge ppa:darxus/wayland-gtk

I had a problem with ppa-purge not working (bug 995113), needed to uncomment the lines in /etc/apt/sources.list.d/darxus-wayland-gtk-precise.list then it worked fine.

#########################################################################

Running weston outside of X:

To fix permissions problems:

sudo chown root /usr/bin/weston
sudo chmod +s /usr/bin/weston

Which will cause you other permissions problems, requiring you to do this after each time you start weston:

sudo chmod ugo+rw /tmp/wayland*

These problems are fixed by using weston-launcher in weston master (the upcoming release).

For some gnome applications, you'll want to run weston as:

dbus-launch /usr/bin/weston

Then run your applications from weston-terminal. You might also want to run gnome-terminal as "gnome-terminal --disable-factory".

#########################################################################

This package was built from Ubuntu Precise GTK+3.0 + these patches from GTK master: http://www.chaosreigns.com/wayland/dl/gtkpatches/

1 to default to X11 before Wayland output: https://bugzilla.gnome.org/show_bug.cgi?id=674102

7 to remove the dependency on cairo-gl: https://bugzilla.gnome.org/show_bug.cgi?id=672361

Other than those 8 patches the only difference is adding --enable-wayland-backend and --enable-x11-backend to DEB_CONFIGURE_EXTRA_FLAGS in debian/rules, and adding build dependencies on libwayland-dev and libxkbcommon-dev.

To build these packages I did:

sudo apt-get install build-essential fakeroot dpkg-dev
apt-get source gtk+3.0
sudo apt-get build-dep gtk+3.0
cd gtk+3.0
# modify debian/rules, add 8 patches to debian/patches
# in debian/control, add dependencies on libwayland-dev, libxkbcommon-dev
dpkg-buildpackage -rfakeroot -b

Looks like you need to build it once, "cp -a debian/libgtk-3-0/DEBIAN/symbols debian/libgtk-3-0.symbols", then build it again.

Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by adding ppa:darxus/wayland-gtk to your system's Software Sources. (Read about installing)

sudo add-apt-repository ppa:darxus/wayland-gtk
sudo apt update
        
Technical details about this PPA

This PPA can be added to your system manually by copying the lines below and adding them to your system's software sources.

deb https://ppa.launchpadcontent.net/darxus/wayland-gtk/ubuntu precise main 
deb-src https://ppa.launchpadcontent.net/darxus/wayland-gtk/ubuntu precise main 
Signing key:
1024R/AB0D56DBC0E682D29CD59549DCC9EDB29626882B (What is this?)
Fingerprint:
AB0D56DBC0E682D29CD59549DCC9EDB29626882B

For questions and bugs with software in this PPA please contact Darxus.

PPA statistics

Activity
0 updates added during the past month.
View package details

Overview of published packages

11 of 1 result
Package Version Uploaded by
gtk+3.0 3.4.1-0ubuntu1+wayland2 (Newer version available) Darxus ()
11 of 1 result

Latest updates

  • gtk+3.0 631 weeks ago
    Successfully built