GTK Ubuntu Precise packaging success

2012-04-18 Thread darxus
On 04/18, dar...@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
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: GTK Ubuntu Precise packaging success

2012-04-18 Thread Rune Kjær Svendsen
Pretty cool Darxus! Works as well on a Precise live CD (USB stick). I only
had to replace the second apt-get upgrade with apt-get dist-upgrade.
Then I went to a VT and restarted lightdm with:
sudo service lightdm restart
and ran:
unity --reset
on the same VT

Back at VT 7 unity had restarted and weston ran fine (got some errors like
Internal error:   Could not resolve keysym SunProps/SunFront/SunOpen
though). The programs you mentioned all ran fine initially, but it all went
downhill when I tried running weston from a VT to get it in full screen
mode (yeah yeah, total hubris, I know). Now some programs start, but crash
when I mouse over them, and the more complex programs (like... anything but
calculator) don't start at all.

Would there be a way to get weston to run from a VT? That is, in full
screen mode?

/runeks

On Wed, Apr 18, 2012 at 3:07 PM, dar...@chaosreigns.com wrote:

 On 04/18, dar...@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-gtkhttps://launchpad.net/%7Edarxus/+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
 ___
 wayland-devel mailing list
 wayland-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/wayland-devel

___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: GTK Ubuntu Precise packaging success

2012-04-18 Thread darxus
On 04/18, Rune Kjær Svendsen wrote:
Pretty cool Darxus! Works as well on a Precise live CD (USB stick). I only

Nice, thanks.

had to replace the second apt-get upgrade with apt-get dist-upgrade.

Yeah, sorry about that, I already fixed that in the directions in the PPA.

Then I went to a VT and restarted lightdm with:
sudo service lightdm restart
and ran:
unity --reset
on the same VT

Cool.

Back at VT 7 unity had restarted and weston ran fine (got some errors like
Internal error:�� Could not resolve keysym SunProps/SunFront/SunOpen

That's normal, I don't know what it is.

though). The programs you mentioned all ran fine initially, but it all
went downhill when I tried running weston from a VT to get it in full
screen mode (yeah yeah, total hubris, I know). Now some programs start,
but crash when I mouse over them, and the more complex programs (like...
anything but calculator) don't start at all.

Weird.  Only thing I can think of that *might* be related is having
another instance of weston running.  I've seen some weird things happen
related to that.  Try running killall weston and then trying again.

Would there be a way to get weston to run from a VT? That is, in full
screen mode?

Yup.  weston needs to be suid root (or run from weston-launcher, which
isn't included in v0.85).  So:

sudo chown root ~/install/bin/weston
sudo chmod +s ~/install/bin/weston

Then run weston from your VT.

-- 
Every man, woman and child on the face of this earth is at the mercy
of chaos. - a maxwell smart movie
http://www.ChaosReigns.com
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: GTK Ubuntu Precise packaging success

2012-04-18 Thread Kristian Høgsberg
On Wed, Apr 18, 2012 at 6:11 PM,  dar...@chaosreigns.com wrote:
 On 04/18, Rune Kjær Svendsen wrote:
    Pretty cool Darxus! Works as well on a Precise live CD (USB stick). I only

 Nice, thanks.

    had to replace the second apt-get upgrade with apt-get dist-upgrade.

 Yeah, sorry about that, I already fixed that in the directions in the PPA.

    Then I went to a VT and restarted lightdm with:
    sudo service lightdm restart
    and ran:
    unity --reset
    on the same VT

 Cool.

    Back at VT 7 unity had restarted and weston ran fine (got some errors like
    Internal error:�� Could not resolve keysym SunProps/SunFront/SunOpen

 That's normal, I don't know what it is.

Should be fixed in most recent xbkcommon.

    though). The programs you mentioned all ran fine initially, but it all
    went downhill when I tried running weston from a VT to get it in full
    screen mode (yeah yeah, total hubris, I know). Now some programs start,
    but crash when I mouse over them, and the more complex programs (like...
    anything but calculator) don't start at all.

 Weird.  Only thing I can think of that *might* be related is having
 another instance of weston running.  I've seen some weird things happen
 related to that.  Try running killall weston and then trying again.

    Would there be a way to get weston to run from a VT? That is, in full
    screen mode?

 Yup.  weston needs to be suid root (or run from weston-launcher, which
 isn't included in v0.85).  So:

 sudo chown root ~/install/bin/weston
 sudo chmod +s ~/install/bin/weston

 Then run weston from your VT.

 --
 Every man, woman and child on the face of this earth is at the mercy
 of chaos. - a maxwell smart movie
 http://www.ChaosReigns.com
 ___
 wayland-devel mailing list
 wayland-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/wayland-devel
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel