Re: GTK Ubuntu Precise packaging success

2012-05-09 Thread darxus
On 05/09, Alex Wu wrote:
> I tryed to fire a bug by "ubuntu-bug libcanberra-gtk3-module ", but
> got "Network problem". So I open a
> bug(https://bugs.launchpad.net/ubuntu/+source/apport/+bug/996904)
> for apport first. I also reported the libcanberra bug
> (https://bugs.launchpad.net/ubuntu/+source/libcanberra/+bug/996917)
> directly through the webpage.

Thanks.

> This bug is only produced on weston as X11 client mode, all
> applications on your list crash. I guess that in the unity env,

Yeah, I haven't tried it under unity.  I wonder why Alan Bell didn't come
across the canberra problem when he found the appmenu problem.

> >bet running weston SUID root breaks it.
> 
> Do you mean  doing "sudo chown root /usr/bin/weston" and "sudo chmod
> +s /usr/bin/weston" will break it? According to my testing, the
> answer is "No".

Yes, that's what I was thinking.  It's cool that it works.

> I opened the wayland debug and found that brasero already launched
> normally ,but not display any output. The input event are normal.

Okay, that sounds similar to what I've seen.  Definitely broken.  Feel free
to open a bug.  People may or may not be interested in it at this point.

> I found another issue that in the native weston mode,  rhythmbox
> will crash in libmmkeys.so which invokes libX11.so. But in the
> weston as X11 client mode, it works fine. It seems that  rhythmbox
> will request dbus service  from gnome-settings-daemon, if the
> service not privided,  rhythmbox will invoke X11 api and crash.
> Where should I report this bug? rhythmbox community or ubuntu?

I'd say in all cases of bugs showing up in ubuntu it's best to report them
both against ubuntu in launchpad and the upstream source, preferably
linking them in launchpad.  


I believe I added all your recommendations to the gtk ppa, feel free to let
me know if you still find the instructions inadequate.

-- 
"theres a lot more to life than chicks
none of it matters but theres a lot of it"
- LeRoy, #motorcycles, #EFNet, 7/18/06
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-05-09 Thread Alex Wu

? 2012/5/8 22:42, dar...@chaosreigns.com ??:

On 05/08, Alex Wu wrote:

Hi darxus,
I installed your PPA on my ubuntu 12.04 desktop and followed your
directions on [1]https://launchpad.net/~darxus/+archive/wayland-gtk to run
the gtk apps you listed both on native weston and weston as X11 client. I
would like to share some information of my trying.

Thanks.


1.  gtk apps will crash due to invoke gdk_x11_* functions in
libcanberra-gtk3-module which is a sound event wrapper lib for gtk3. so I
removed this package.

Please open a bug for this by running "ubuntu-bug libcanberra-gtk3-module",
similar to these, tagged "wayland":


I tryed to fire a bug by "ubuntu-bug libcanberra-gtk3-module ", but got 
"Network problem". So I open a 
bug(https://bugs.launchpad.net/ubuntu/+source/apport/+bug/996904) for 
apport first. I also reported the libcanberra bug 
(https://bugs.launchpad.net/ubuntu/+source/libcanberra/+bug/996917) 
directly through the webpage.




https://launchpad.net/bugs/984914
https://launchpad.net/bugs/994091

I haven't seen this, which application or applications produced it?


This bug is only produced on weston as X11 client mode, all applications 
on your list crash. I guess that in the unity env, there is a daemon 
which use libcanberra to provide sound theme for apps. While in the 
weston desktop, no sound deamon launched and hence no crash. Anyway, 
libcanberra-gtk3-module has direct dependency on gdk_x11_**, that should 
be removed.





2. Should setuid for weston like this:
 sudo chown root /usr/bin/weston
 sudo chmod +s /usr/bin/weston

For running outside of X, yes, I should add that.


3. Each time launched weston, should make the sockect accessible for
clients:
sudo chmod ugo+rw /tmp/wayland*
I noticed that 2 and 3 has been mentioned in this thread, but adding
them into your directions may make thing easier.

When running with weston SUID root, yeah, that's a good idea too.


4. For gnome-terminal, gedit and rhythmbox,  should launch a session bus
and export the DBUS_SESSION_BUS_ADDRESS. When run app under unity,
DBUS_SESSION_BUS_ADDRESS is already their.  when  run app in fullscreen
weston (launched in VT), should export DBUS_SESSION_BUS_ADDRESS manually.

From: http://www.chaosreigns.com/wayland/works/
'To get gnome-terminal to work outside of windows, you probably want to
launch weston as "dbus-launch ~/install/bin/weston", and run gnome-terminal
as "gnome-terminal --disable-factory".'

I suspect running weston through dbus-launch has a similar effect, but I


Yes, If the terminal running the app can inherit the 
DBUS_SESSION_BUS_ADDRESS env from weston, for example, clicking the 
terminal icon on the weston panel will launch a weson-terminal which 
inherits the DBUS_SESSION_BUS_ADDRESS env from weston. But if the 
wesont-terminal is launched from a remote terminal, for example, I used 
to launch app from a putty terminal, that breaks it.



bet running weston SUID root breaks it.


Do you mean  doing "sudo chown root /usr/bin/weston" and "sudo chmod +s 
/usr/bin/weston" will break it? According to my testing, the answer is 
"No".

My steps are:
Open VT
sudo chown root /usr/bin/weston
sudo chmod +s /usr/bin/weston
export XDG_RUNTIME_DIR=/tmp
export LIBOVERLAY_SCROLLBAR=0
dbus-launch /usr/bin/weston
clicked terminal icon on the weston panel to launch weston-terminal

#In the weston-terminal
export GDK_BACKEND=wayland
sudo chmod ugo+rw /tmp/wayland*
gnome-terminal & # that works fine
...




5. brasero can not run, and no useful log printed.

What exactly did you see?  Did it run, without crashing, but not display
any output?  I've seen that sometimes, other times it works.  Occasionally
it doesn't display until... I'm not sure what happens.


I opened the wayland debug and found that brasero already launched 
normally ,but not display any output. The input event are normal.


I found another issue that in the native weston mode,  rhythmbox will 
crash in libmmkeys.so which invokes libX11.so. But in the weston as X11 
client mode, it works fine. It seems that  rhythmbox will request dbus 
service  from gnome-settings-daemon, if the service not privided,  
rhythmbox will invoke X11 api and crash. Where should I report this bug? 
rhythmbox community or ubuntu?
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel


Re: GTK Ubuntu Precise packaging success

2012-05-08 Thread darxus
On 05/08, Alex Wu wrote:
>Hi darxus,
>I installed your PPA on my ubuntu 12.04 desktop and followed your
>directions on [1]https://launchpad.net/~darxus/+archive/wayland-gtk to run
>the gtk apps you listed both on native weston and weston as X11 client. I
>would like to share some information of my trying.

Thanks.

>1.  gtk apps will crash due to invoke gdk_x11_* functions in
>libcanberra-gtk3-module which is a sound event wrapper lib for gtk3. so I
>removed this package.

Please open a bug for this by running "ubuntu-bug libcanberra-gtk3-module",
similar to these, tagged "wayland":
  
https://launchpad.net/bugs/984914
https://launchpad.net/bugs/994091

I haven't seen this, which application or applications produced it?  

>2. Should setuid for weston like this:
> sudo chown root /usr/bin/weston
> sudo chmod +s /usr/bin/weston

For running outside of X, yes, I should add that.

>3. Each time launched weston, should make the sockect accessible for
>clients:
>    sudo chmod ugo+rw /tmp/wayland*
>    I noticed that 2 and 3 has been mentioned in this thread, but adding
>them into your directions may make thing easier.

When running with weston SUID root, yeah, that's a good idea too.

>4. For gnome-terminal, gedit and rhythmbox,  should launch a session bus
>and export the DBUS_SESSION_BUS_ADDRESS. When run app under unity,
>DBUS_SESSION_BUS_ADDRESS is already their.  when  run app in fullscreen
>weston (launched in VT), should export DBUS_SESSION_BUS_ADDRESS manually.

From: http://www.chaosreigns.com/wayland/works/
'To get gnome-terminal to work outside of windows, you probably want to
launch weston as "dbus-launch ~/install/bin/weston", and run gnome-terminal
as "gnome-terminal --disable-factory".'

I suspect running weston through dbus-launch has a similar effect, but I
bet running weston SUID root breaks it.

>5. brasero can not run, and no useful log printed.

What exactly did you see?  Did it run, without crashing, but not display
any output?  I've seen that sometimes, other times it works.  Occasionally
it doesn't display until... I'm not sure what happens.

-- 
"Life is either a daring adventure or it is nothing at all."
- Helen Keller
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-05-08 Thread Alex Wu

Hi darxus,
I installed your PPA on my ubuntu 12.04 desktop and followed your 
directions on https://launchpad.net/~darxus/+archive/wayland-gtk to run 
the gtk apps you listed both on native weston and weston as X11 client. 
I would like to share some information of my trying.


1.  gtk apps will crash due to invoke gdk_x11_* functions in 
libcanberra-gtk3-module which is a sound event wrapper lib for gtk3. so 
I removed this package.


2. Should setuid for weston like this:
 sudo chown root /usr/bin/weston
 sudo chmod +s /usr/bin/weston

3. Each time launched weston, should make the sockect accessible for 
clients:

sudo chmod ugo+rw /tmp/wayland*
I noticed that 2 and 3 has been mentioned in this thread, but 
adding them into your directions may make thing easier.


4. For gnome-terminal, gedit and rhythmbox,  should launch a session bus 
and export the DBUS_SESSION_BUS_ADDRESS. When run app under unity, 
DBUS_SESSION_BUS_ADDRESS is already their.  when  run app in fullscreen 
weston (launched in VT), should export DBUS_SESSION_BUS_ADDRESS manually.


5. brasero can not run, and no useful log printed.


? 2012/4/18 23:07, dar...@chaosreigns.com ??:

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.



___
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-19 Thread darxus
On 04/19, Rune Kjær Svendsen wrote:
> Regarding the Super+Alt combinations (window rotate, zoom, resize) is
> that not in weston 0.85 either? Cause it's not working.

Yes, that's not in 0.85 either:  http://www.chaosreigns.com/wayland/weston/

-- 
"Let's just say that if complete and utter chaos was lightning, then
he'd be the sort to stand on a hilltop in a thunderstorm wearing wet
copper armour and shouting 'All gods are bastards'." - The Color of Magic
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-19 Thread Rune Kjær Svendsen
2012/4/19 
>
> On 04/19, Rune Kjær Svendsen wrote:
> >    I can get it to start in a VT when setuid is set, but then launching apps
> >    doesn't work. I get "Error opening file for reading: Permission denied"
> >    (right after listing the path of the socket).
> >    If I turn off the setuid the mouse doesn't work when I start weston in a
> >    VT, and it makes unity crash as well. Is this expected behaviour? Not the
> >    crashing obviously, but that weston can't read the sockets it creates 
> > when
> >    setuid is on (and it's running as a normal user)?
>
> Yes, this is expected.
>
> It's fixed by launching it via weston-launcher, which is only in git
> master (not in v0.85 which is packaged for Ubuntu).
>
> One workaround is to suid weston, run weston, then
> "sudo chmod ugo+rw /tmp/wayland*", then run your clients.

That seems to fix it. Seems like it's missing write access for "other"
(that's the only thing that's missing before chmod'ing as per the
above). Doesn't matter whether it's in /tmp or /home/ubuntu though.


> It may also be a problem specific to /tmp, so setting XDG_RUNTIME_DIR to
> any other directory you can write to might help.  Just a rumor I heard,
> haven't tried it.
>
> >    gnome-terminal, gedit and rhythmbox don't work though. Not sure why.
>
> I have a note on http://www.chaosreigns.com/wayland/works/ to run weston
> as: "dbus-launch weston"
>
> And gnome terminal as: "gnome-terminal --disable-factory"
>
> Might help.

Yep! That works. Actually just using dbus-lunch to run weston makes
gnome-terminal open up without adding --disable-factory. I did see
some messages in the VT after closing weston about dbus not being able
to connect to something. Now gedit runs as well.

> >    Nothing interested is printed in the VT for me to see after I kill 
> > weston.
>
> Try running the clients directly from a command line?  Might give you more
> useful errors.

Right. Now that I got gnome-terminal running it looks like a DBus
error with rhythmbox (this is when running weston as root):

(rhythmbox:13428): Rhythmbox-WARNING **: Unable to grab media player
keys: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such
interface `org.gnome.SettingsDaemon.MediaKeys' on object at path
/org/gnome/SettingsDaemon/MediaKeys

and when running as regular user:

(rhythmbox:13668): Rhythmbox-WARNING **: Unable to grab media player keys:
Error calling StartServiceByName for org.gnome.SettingsDaemon:
GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process
/usr/lib/gnome-settings-daemon/gnome-settings-daemon exited with
status 1

and then it exits with a seg fault related to Xkb:

(gdb) bt
#0  XkbUseExtension (dpy=0x70fd60, major_rtrn=0x0, minor_rtrn=0x0)
at ../../../src/xkb/XKBUse.c:651
#1  0x7fffefaaa267 in _XkbLoadDpy (dpy=0x70fd60)
at ../../../src/xkb/XKBBind.c:499
#2  0x7fffefaaaf68 in XKeysymToKeycode (dpy=0x70fd60, ks=269025044)
at ../../../src/xkb/XKBBind.c:158
#3  0x7fff87dfc91e in mmkeys_grab (plugin=0x1576280, grab=1)
at rb-mmkeys-plugin.c:304
#4  0x7fff87dfcec1 in first_call_complete (proxy=0x1597c30,
res=, plugin=0x1576280) at rb-mmkeys-plugin.c:349
#5  0x7753cf57 in g_simple_async_result_complete (simple=0x15a1510)
at /build/buildd/glib2.0-2.32.1/./gio/gsimpleasyncresult.c:767
#6  0x7759529d in reply_cb (connection=,
res=, user_data=0x15a1510)

Regarding the Super+Alt combinations (window rotate, zoom, resize) is
that not in weston 0.85 either? Cause it's not working.
___
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-19 Thread darxus
On 04/19, Rune Kjær Svendsen wrote:
>I can get it to start in a VT when setuid is set, but then launching apps
>doesn't work. I get "Error opening file for reading: Permission denied"
>(right after listing the path of the socket).
>If I turn off the setuid the mouse doesn't work when I start weston in a
>VT, and it makes unity crash as well. Is this expected behaviour? Not the
>crashing obviously, but that weston can't read the sockets it creates when
>setuid is on (and it's running as a normal user)?

Yes, this is expected.

It's fixed by launching it via weston-launcher, which is only in git
master (not in v0.85 which is packaged for Ubuntu).

One workaround is to suid weston, run weston, then 
"sudo chmod ugo+rw /tmp/wayland*", then run your clients.

It may also be a problem specific to /tmp, so setting XDG_RUNTIME_DIR to
any other directory you can write to might help.  Just a rumor I heard,
haven't tried it.

>gnome-terminal, gedit and rhythmbox don't work though. Not sure why.

I have a note on http://www.chaosreigns.com/wayland/works/ to run weston
as: "dbus-launch weston"

And gnome terminal as: "gnome-terminal --disable-factory"

Might help.

>Nothing interested is printed in the VT for me to see after I kill weston.

Try running the clients directly from a command line?  Might give you more
useful errors.

-- 
"Blessed are the cracked, for they shall let in the light."
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-19 Thread Rune Kjær Svendsen
Ok. Figured out a couple of things:

1. The aforementioned system-wide setting allegedly turning off fancy
scrollbars doesn't work
2. When setuid is enabled for /usr/bin/weston it apparently can't read the
file it creates in /tmp

So it's working now when I turn off setuid. In a window running inside
Unity that is.

I can get it to start in a VT when setuid is set, but then launching apps
doesn't work. I get "Error opening file for reading: Permission denied"
(right after listing the path of the socket).
If I turn off the setuid the mouse doesn't work when I start weston in a
VT, and it makes unity crash as well. Is this expected behaviour? Not the
crashing obviously, but that weston can't read the sockets it creates when
setuid is on (and it's running as a normal user)?
I can get it to run properly in a VT by first running "sudo bash" and thus
making it run as root. But I presume this isn't the way it's supposed to
run? Does look mighty smooth though! So silky smooth.
gnome-terminal, gedit and rhythmbox don't work though. Not sure why.
Nothing interested is printed in the VT for me to see after I kill weston.


2012/4/19 

> On 04/19, Rune Kjær Svendsen wrote:
> >Thanks for the tip. I originally added the line to the file
> >/etc/skel/.bashrc which is what the .bashrc file in the /home/ubuntu
> >directory is created from on the live CD. So the line is present in
> >~/.bashrc as soon as .bashrc is present in the /home/ubuntu folder on
> the
> >live CD.
> >
> >I just tried adding it to
> /etc/X11/Xsession.d/99disable-overlay-scrollbars
> >instead, which should apply the setting system-wide (as described
> here:
> >[1]
> http://askubuntu.com/questions/34214/how-do-i-disable-overlay-scrollbars).
> >When I echo the value in a terminal it correctly says 0. Now, however,
> >when I try to run an application, I get the following error (no matter
> >which app I run):
> >
> >�� (gnome-calculator:4443): Gtk-WARNING **: cannot open display: :0.0
> >�� [1]+� Exit 1� gnome-calculator
> >
> >Any ideas?
>
> That's the error you get when XDG_RUNTIME_DIR isn't set, and possibly when
> you don't have write access to it.
>
> --
> "You may be recognized soon. Hide."
> 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-19 Thread Rune Kjær Svendsen
Thanks for the tip. I originally added the line to the file
/etc/skel/.bashrc which is what the .bashrc file in the /home/ubuntu
directory is created from on the live CD. So the line is present in
~/.bashrc as soon as .bashrc is present in the /home/ubuntu folder on the
live CD.

I just tried adding it to
/etc/X11/Xsession.d/99disable-overlay-scrollbarsinstead, which should
apply the setting system-wide (as described here:
http://askubuntu.com/questions/34214/how-do-i-disable-overlay-scrollbars).
When I echo the value in a terminal it correctly says 0. Now, however, when
I try to run an application, I get the following error (no matter which app
I run):

   (gnome-calculator:4443): Gtk-WARNING **: cannot open display: :0.0
   [1]+  Exit 1  gnome-calculator

Any ideas?

2012/4/19 

> On 04/19, Rune Kjær Svendsen wrote:
> >I'm trying it out on a live CD now that I've created with the script
> I'm
> >attaching to this message.
> >For some reason it's not working. Here are the messages I'm getting
> >running the programs you've listed in the order you listed them:
> >[1]http://pastebin.com/xtaKP8nz
> >weston says the following: [2]http://pastebin.com/rH7nDwvk
> >
> >All of the programs appear quickly only to crash right after.
>
> >This is in my .bashrc:
> >export LIBOVERLAY_SCROLLBAR=0
> >
> >Not sure if it's related to the live CD somehow. It worked when I just
> >fired up a clean live CD, installed your GTK backend and ran the stuff
> >from there.
>
> I'd guess the LIBOVERLAY_SCROLLBAR somehow isn't happening.  Did you start
> a new bash shell, or source your ~/.bashrc after adding that line?
>
> --
> "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-19 Thread darxus
On 04/19, Rune Kjær Svendsen wrote:
>I'm trying it out on a live CD now that I've created with the script I'm
>attaching to this message.
>For some reason it's not working. Here are the messages I'm getting
>running the programs you've listed in the order you listed them:
>[1]http://pastebin.com/xtaKP8nz
>weston says the following: [2]http://pastebin.com/rH7nDwvk
> 
>All of the programs appear quickly only to crash right after.

>This is in my .bashrc:
>export LIBOVERLAY_SCROLLBAR=0
> 
>Not sure if it's related to the live CD somehow. It worked when I just
>fired up a clean live CD, installed your GTK backend and ran the stuff
>from there.

I'd guess the LIBOVERLAY_SCROLLBAR somehow isn't happening.  Did you start
a new bash shell, or source your ~/.bashrc after adding that line?

-- 
"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-19 Thread Rune Kjær Svendsen
I'm trying it out on a live CD now that I've created with the script I'm
attaching to this message.
For some reason it's not working. Here are the messages I'm getting running
the programs you've listed in the order you listed them:
http://pastebin.com/xtaKP8nz
weston says the following: http://pastebin.com/rH7nDwvk

All of the programs appear quickly only to crash right after.

I think I followed your instructions exactly. First I export the following
environment variable in one terminal, and run weston:
export XDG_RUNTIME_DIR=/tmp
weston

then in another I export the following:
export XDG_RUNTIME_DIR=/tmp
export GDK_BACKEND=wayland

and run whichever program I want.

This is in my .bashrc:
export LIBOVERLAY_SCROLLBAR=0


Not sure if it's related to the live CD somehow. It worked when I just
fired up a clean live CD, installed your GTK backend and ran the stuff from
there.


2012/4/18 

> 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
>


create-wayland-precise.sh
Description: Bourne shell script
___
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,   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


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 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,  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-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


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