GTK Ubuntu Precise packaging success
Rune Kjær Svendsen
runesvend at gmail.com
Thu Apr 19 14:13:28 PDT 2012
2012/4/19 <darxus at chaosreigns.com>
> 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
and when running as regular user:
(rhythmbox:13668): Rhythmbox-WARNING **: Unable to grab media player keys:
Error calling StartServiceByName for org.gnome.SettingsDaemon:
/usr/lib/gnome-settings-daemon/gnome-settings-daemon exited with
and then it exits with a seg fault related to Xkb:
#0 XkbUseExtension (dpy=0x70fd60, major_rtrn=0x0, minor_rtrn=0x0)
#1 0x00007fffefaaa267 in _XkbLoadDpy (dpy=0x70fd60)
#2 0x00007fffefaaaf68 in XKeysymToKeycode (dpy=0x70fd60, ks=269025044)
#3 0x00007fff87dfc91e in mmkeys_grab (plugin=0x1576280, grab=1)
#4 0x00007fff87dfcec1 in first_call_complete (proxy=0x1597c30,
res=<optimized out>, plugin=0x1576280) at rb-mmkeys-plugin.c:349
#5 0x00007ffff753cf57 in g_simple_async_result_complete (simple=0x15a1510)
#6 0x00007ffff759529d in reply_cb (connection=<optimized out>,
res=<optimized out>, 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.
More information about the wayland-devel