00:27 idkrn[m]: <idkrn[m]> "Still can't get my program to..." <- Has anyone here ever attempted this? I can't figure out what I'm doing wrong
05:39 hays: undefined reference to symbol 'wl_data_device_interface'
05:39 hays: ^^getting this linker error.. having trouble figuring out where this comes from
05:40 hays: maybe supposed to be in libwayland-client.so.0 ?
05:42 hays: https://github.com/nobled/wayland/blob/f5ccd7a9e670e097ff9b5faae8a26b3af4bb7b60/src/data-device.c#L416
06:11 hays: this is so weird. this wl_data_device_interface shows up in sample code and in generated code when building wayland.. but apparently its not linked in?
09:10 wlb: weston Merge request !1084 closed (gitlab-ci.yml: Don't run CI pipeline on every push)
09:19 wlb: weston/main: Marius Vlad * 10 commits https://gitlab.freedesktop.org/wayland/weston/compare/5b7561b25d7db05839def4d69e2ca1f3a1e18e56...50809097a826029530dfc442d1f5740fe6d9c51f
09:19 wlb: weston Merge request !1091 merged \o/ (Update and fix up man and README https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1091)
11:08 wlb: wayland/main: Fergus Dall * scanner: Fix undefined behavior around qsort https://gitlab.freedesktop.org/wayland/wayland/commit/41aed7a38a92 src/scanner.c
11:08 wlb: wayland Merge request !271 merged \o/ (scanner: Fix undefined behavior around qsort https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/271)
18:44 mjt: what's needed these days to start wayland session on a tty?
18:45 mjt: logging in from a getty@tty1 as normal user. pam-systemd is here, loginctl shows the session, loginctl show-seat seat0 says CanGraphical=yes
18:45 mjt: startx works
18:46 mjt: but sway/weston/cage are getting permission denied errors
18:48 mjt: cage is trying to open /dev/tty0, O_RDWR and is getting EACCES
18:48 emersion: mjt: have you compiled these libseat with logind support?
18:49 mjt: this is debian packages. i guess it's compiled with libseat
18:49 mjt: 00:00:00.003 [ERROR] [libseat] [seatd/seat.c:61] Could not open tty0 to update VT: Permission denied
18:49 mjt: (and a ton of other messages)
18:49 emersion: this is weird, the error message comes from the "direct" libseat launcher, not the logind one
18:50 emersion: can you upload the messages on a pastebin?
18:50 mjt: http://paste.debian.net/1266043/ -- this is when I start cage (and it sits there until I pkill -9 it from another tty)
18:51 mjt: does it need some "seatd" thing to be runing?
18:53 mjt: ok. installed seatd. now cage complains it can't access /run/seatd.sock (permission denied)
18:53 kennylevinsen: Need to be in the right group
18:54 mjt: is seatd necessary when stuff is built with libseat?
18:55 kennylevinsen: no, logind is fine. Your problem is that logind is saying no, giving you permission denied.
18:56 kennylevinsen: Are you trying directly on the physical machine, on a plain VT you logged in normally to? No ssh or other alternate login mechanism?
18:56 mjt: logging in from getty@tty1
18:56 kennylevinsen: polkit installed?
18:56 mjt: from the console, from regular moniror
18:57 mjt: no polkit, should it be installed?
18:57 kennylevinsen: systemd in general works poorly without polkit, try to install
18:58 idkrn[m]: <mjt> "but sway/weston/cage are getting..." <- chmod -R 777 /
18:58 idkrn[m]: Ok sorry that was unnecessary
18:58 kennylevinsen: idkrn[m]: no don't do that
18:59 mjt: had no issues before without polkitd. Now installed polkitd, things started working
18:59 idkrn[m]: kennylevinsen: Don't joke?
18:59 mjt: unfortunately for logind chmod'ing everything to 777 wont help
19:00 mjt: so.. it is either polkitd or seatd with group=video :)
19:00 kennylevinsen: idkrn[m]: I have seen people actually do that, so I'm a little cautious there
19:01 kennylevinsen: mjt: unless you added yourself to the seatd group that would be polkitd
19:01 mjt: kennylevinsen: I think idkrn[m] knows a bit about me and is sure I wont fall into this 0777 trap :)
19:01 idkrn[m]: kennylevinsen: 😨
19:01 kennylevinsen: Makes sense as you had permission denied issues, and polkit is used to grant access to things
19:01 mjt: seatd..
19:02 mjt: there's no such group here
19:04 mjt: is there some "big picture" about all this stuff?
19:05 mjt: the architecture, where we're going to
19:05 kennylevinsen: seatd's group is whatever is passed to it as the -g parameter when started, likely seat, seatd or _seatd
19:06 mjt: started as seatd -g video here
19:06 mjt: I see
19:06 kennylevinsen: then the video group, just controls what the ownership of the socket becomes
19:06 mjt: yeah
19:07 mjt: why things now ask logind for the permission to start wayland?
19:07 mjt: or seatd, or.. ?
19:07 mjt: 00:00:00.003 [ERROR] [libseat] [libseat/backend/logind.c:317] Could not activate session: Rejected send message, 1 matched rules; type="method_call", sender=":1.45" (uid=0 pid=2279 comm="/lib/systemd/systemd-logind") interface="org.freedesktop.PolicyKit1.Authority" member="CheckAuthorization" error name="(unset)" requested_reply="0" destination="org.freedesktop.PolicyKit1" (uid=997 pid=2045
19:07 mjt: comm="/usr/lib/polkit-1/polkitd --no-debug")
19:08 kennylevinsen: logind needing polkit is unrelated to Wayland, seatd, libseat, etc.
19:08 mjt: (this is after I installed polkitd and removed it)
19:08 mjt: I see. I asked this in #systemd first :)
19:09 mjt: well. this thing works now. It feels too fragile still, as it breaks with every release
19:09 mjt: new and new layers are needed just to run a trivial gui app
19:09 kennylevinsen: This requirement isn't new though. Maybe you used an old systemd before?
19:10 kennylevinsen: logind is overcomplicated in my opinion, that's one of the reasons I made seatd - simple, standalone, just needs to run and have right file permissions
19:10 mjt: it was debian bullseye. there, as it truned out, xwayland had issues with damage handling. I asked here, the suggestion was to upgrade xwayland. So I upgraded to bookworm, and now it doesn't start
19:12 mjt: (I didn't want to backport wayland stuff as bullseye is about to be replaced with bookworm anyway)
19:13 kennylevinsen: Maybe you lost polkit in the upgrade? I vaguely remember debian doing something slightly different there
19:13 mjt: initially I just wanted to run freerdp client on a small terminal hw. I've been trying this for over 2 months now, and it looks like a carrot before the donkey: each time being very very close but always failing
19:14 mjt: it's a new install, and yes, polkitd was installed before as a dependency of sway
19:15 mjt: the whole thing should just autologin and run cage wlfreerdp ....
19:16 mjt: there are layers and layers and layers to achieve this now, it seems :))
19:17 mjt: guess dropping systemd wont work either, as something will refuse to work just because there's no systemd around :)
19:18 mjt: kennylevinsen: thank you very much for the seatd suggestion.. and for *writing* it to begin with! :)
19:38 wlb: weston Merge request !1097 opened by Loïc Molinari (molinari) gl-renderer: Minimize state changes https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1097
19:43 mjt: is there a way to configure cage for two monitors? (to configure which is on left and which is on right)
19:44 mjt: it's probaly wrong place to ask :)
20:02 emersion: mjt: maybe via kanshi
20:02 emersion: or just wlr-randr
20:02 mjt: wlr-randr? hm.. yet another tool (tm) :))
20:29 mjt: emersion: wlr-randr: compositor doesn't support wlr-output-management-unstable-v1 :)
20:29 emersion: with cage?
20:29 emersion: i thought it did
20:29 mjt: cage 0.1.4-4 (debian bookworm build)
20:31 mjt: well, it seems to be a cage question really
20:32 mjt: (it's almost impossible to do searching for anything cage, as google finds tons of irrelevant info)
21:12 mjt: emersion: so, sway works with wlr-randr and with swaymsg. thank you for the wlr-randr hint!
21:13 emersion: sway has a config file where you can setup outputs
21:13 mjt: well, yes, that too
21:14 mjt: I hoped to avoid more advanced stuff than cage, as the only thing I need is to run kiosk-mode single-app thing without even tty switching
21:15 mjt: how wayland apps usually find cursors?
21:17 emersion: libwayland-cursor
21:21 mjt: so it has quite some built-in cursors.. I wonder why it (swat) displays no mouse cursor and complains about being unable to find cursor theme..
21:21 mjt: s/swat/sway/