ChanServ changed the topic of #kisslinux to: Unnofficial KISS Linux community channel | https://kisscommunity.org | post logs or else | song of the day: http://yewtu.be/fG0xfGZSmR4
dilyn has joined #kisslinux
<dilyn> @illiliti: http://ix.io/3QeO
<dilyn>  womp
<dilyn> cloning kiss-libdemi and building libinput
illiliti has joined #kisslinux
<illiliti> dilyn: clang i suppose?
<dilyn> yessir
<illiliti> fixed
<dilyn> <3
<illiliti> noocsharp: this is bad
<illiliti> at least there's immediate dereference which will crash the program
<illiliti> still bad though
<noocsharp> i've been working on removing all the unnecessary allocations, but there's a lot of them
<noocsharp> and a bunch of other weird stuff
<noocsharp> it's weird that wl-clipboard is as widely used as it is given the code quality
<dilyn> because it's the only implementation of a clipboard for wayland basically :v
<illiliti> code quality is super bad
<illiliti> look at this
<illiliti> hardcoded /tmp
<illiliti> use TMPDIR first
<noocsharp> i haven't fixed that yet, but i'll put it on the list
<noocsharp> maybe it would be better to just write a better one from scratch
<illiliti> indeed
<illiliti> the code is too bad
<illiliti> gosh
<noocsharp> and the maintainer is gone to help r invade u probably
<illiliti> let distro maintainer decide which path should be used, stop doing this nonsense
<noocsharp> lol
<dilyn> I should learn go faster to write a better version :V :V :V
<noocsharp> it has to be in c or nobody will use it
<dilyn> :|
<illiliti> ^
<dilyn> but golang so kewl
<noocsharp> it has to be in c or illiliti won't use it
<dilyn> weeeeeellllll
<dilyn> illiliti is your wlroots fork based on -.15x or 0.14?
<illiliti> latest master
<dilyn> hng
<illiliti> soliwilos said they was able to apply my patch to 0.15.0
<dilyn> my problem is that wayfire still uses 0.14.1
<illiliti> ah
<illiliti> ssize_t
<noocsharp> yeah, i saw that a few days ago
<noocsharp> forgot about it apparently
<noocsharp> it's inherited from master
<illiliti> i would put assert here or smth to make sure it's newline
<noocsharp> tbh i'm probably gonna abandon this and just write a new one
<illiliti> yeah
<noocsharp> i feel like it's much easier to get error checking right if you're diligent about it from the beginning than shoehorning it into a project that didn't pay attention to it
<illiliti> my thoughts exactly
<illiliti> no wonder why wl-clipboard is too buggy. i use fg/bg instead of tmux and sometimes if i copy something it can cause deadlock
<illiliti> i have no choice but to kill -9
nickly has joined #kisslinux
nickly has quit [Client Quit]
nickly has joined #kisslinux
<testuser[m]> Hi
<noocsharp> \o/
<testuser[m]> <illiliti> "ssize_t" <- Bruh
<testuser[m]> It's gonna explode if a signal is received
nickly has quit [Ping timeout: 256 seconds]
<testuser[m]> typedef char * const *argv_t
<testuser[m]> Cursed
<illiliti> signals are bug by definition btw
<illiliti> we need signal-free versions of functions
<illiliti> see close() EINTR fallout
<testuser[m]> I write a wrapper for them with a loop to check errno for eintr
<illiliti> never
<noocsharp> for close!?
<illiliti> never ever use close() in the loop
<testuser[m]> No
<testuser[m]> i meant write / read
<noocsharp> while (close() == -1);
<dilyn> http://ix.io/3Qf8 womp womp
<dilyn> the greatest shame is that hikari requires pango :v
<dilyn> hi testuser:)
<testuser[m]> Bruh illiliti something actually did that https://github.com/wahern/cqueues/issues/56
<noocsharp> unix is really simple when you don't look too hard
<illiliti> dilyn: what patch are you trying to port?
<dilyn> latest on libdemi branch
<dilyn> oh harumph...
<dilyn> one sec
<illiliti> i no longer update github branch
<dilyn> aha i see i see
<dilyn> we'll see :V
<illiliti> noocsharp: if you're going to (re)write wl-clipboard, consider taking a library approach
<illiliti> so people can use your API instead of shelling out to command
<illiliti> something like that, but in c
<noocsharp> yeah, let me get something working first and then i'll do that
<illiliti> yeah, no rush
<testuser[m]> Rich
<illiliti> yeah yeah yeah yeah
<dilyn> if you're going to rewrite wl-clipboard consider using a nonGPL license<3
<noocsharp> i have never used gpl in my life
<dilyn> my man 8)
<noocsharp> although every time i start working on something i spend a day debating whether to make it gpl
<dilyn> include a Dilyn-exception
<illiliti> dilyn: make sure #include "backend/session/session.h" is present
<illiliti> in backend/session/session.c
<dilyn> it is :V
<dilyn> hence my confusion lmao
<dilyn> I thought I had bungled an ifdef but that isn't the case either
<dilyn> something just isn't being roped in somehow...
<testuser[m]> U mostly don't need to worry about corpos stealing ur stuff unless it's webscale 🚀 related
<testuser[m]> But i still use gpl
<illiliti> grep session_open_if_kms include/backend/session/session.h
<dilyn> ack
<dilyn> ain't there
<dilyn> only present in two files
<dilyn> oh wait hold on
<dilyn> it isn't present in that file;
<dilyn> ./backend/session/udev.c:session_open_if_kms(session, udev_device_get_devnode(dev));
<dilyn> ./backend/session/demi.c.orig:struct wlr_device *wlr_dev = session_open_if_kms(ctx->session, devnode);
<dilyn> ./backend/session/session.c:struct wlr_device *wlr_dev = session_open_if_kms(session, devnode);
<illiliti> dilyn: also, i recommend using git merge to merge patches
<illiliti> it's smarter than patch
<dilyn> hm yes that is very true :thinking: why didn't I think of that
<illiliti> re GPL, my rule: ISC for libs, 0BSD for algos/simple programs/build scripts, GPLv3 for everything else
<dilyn> interestingly that line exists in wlroots 0.14.1 but the struct isn't defined in include/backend/session/session.h in 0.14.1...
<dilyn> jk it exists as *open_if_kms* smh
<illiliti> hmm
<illiliti> i see
<illiliti> rename it to session_open_if_kms
<dilyn> a few more errors
<dilyn> specifically "static dec of "session_open_if_kms" follows non-static dec"
<dilyn> oh shit no lol that's a bad thing; my mistake
<dilyn> fixed the patch; now it's the same error as before except open_if_kms is undef. so perhaps just rewrite open_if_kms as session_open_if_kms?
<dilyn> indeed, there was one lingering open_if_kms. changed it, and it built.
<dilyn> okay. if everything worked, i should be back in less than two minutes. If I'm not, it did *not* work :V
dilyn has quit [Quit: Connection closed]
<noocsharp> lol
<illiliti> rip
<illiliti> https://termbin.com/nog8 cherry-picked
<illiliti> not tested
<illiliti> should work now
dilyn has joined #kisslinux
<dilyn> :v
<dilyn> will test soonish
dilyn has quit [Quit: Connection closed]
illiliti has quit [Quit: leaving]
dilyn has joined #kisslinux
illiliti has joined #kisslinux
<dilyn> it may theoretically be my problem
<illiliti> wdym?
<illiliti> can you post logs or something?
<illiliti> backtrace if it's segfault
<dilyn> no segfaults or anything; wayfire launches just fine
<dilyn> just no input, not a permission problem afaik
<illiliti> hmm
<dilyn> I can try to nab some logs from wayfire later to see what's up
<dilyn> but for now, pizza and reacher time :v
<dilyn> most of this work will probably be rendered irrelevant once wayfire is updated to latest wlroots anyways; wayfire itself doesn't actually use any libudev stuff
<dilyn> well that may or may not be true; I suppose I'd have to see how it's using wlroots
<illiliti> git grep udev
illiliti has quit [Quit: leaving]
illiliti has joined #kisslinux
ejjdhfjsu has quit [Ping timeout: 256 seconds]
illiliti has quit [Ping timeout: 240 seconds]
illiliti has joined #kisslinux
ella-0 has joined #kisslinux
phoebos has quit [Ping timeout: 256 seconds]
phoebos has joined #kisslinux
acheam has quit [Ping timeout: 240 seconds]
akspecs has quit [Ping timeout: 240 seconds]
_ctb has quit [Read error: Connection reset by peer]
akspecs has joined #kisslinux
acheam has joined #kisslinux
_ctb has joined #kisslinux
<phinxy> Why do you prefer ISC license for libs?
<illiliti> permissive, allows static link unlike gpl
soliwilos has joined #kisslinux
ehawkvu[m] has quit [Ping timeout: 240 seconds]
ehawkvu[m] has joined #kisslinux
ehawkvu[m] has quit [Read error: Connection reset by peer]
ehawkvu[m] has joined #kisslinux
Rohan has joined #kisslinux
ejjdhfjsu has joined #kisslinux
mahmutov_ has joined #kisslinux
mahmutov_ is now known as mahmutov
an3223 has quit [Remote host closed the connection]
an3223 has joined #kisslinux
mcpcpc_on_kirc has joined #kisslinux
mcpcpc_on_kirc has left #kisslinux [#kisslinux]
_ctb has quit [Remote host closed the connection]
acheam has quit [Remote host closed the connection]
akspecs has quit [Remote host closed the connection]
acheam has joined #kisslinux
_ctb has joined #kisslinux
mcpcpc_on_kirc has joined #kisslinux
akspecs has joined #kisslinux
<dilyn> illiliti: `git grep udev` only reveals a single CI workflow :o hmhmhm
<illiliti> good
<illiliti> dilyn: does sway work with libdemi btw?
<dilyn> no idea, never tried!
<dilyn> I am not a super big fan of tiling wms nowadays :\
<illiliti> no input devices means there's a possible bug in my libinput patch or libdemi
<illiliti> you can help me catch one
<dilyn> i agree
<dilyn> wayfire has several debugging options; I'll collect them independently and send 'em your way
<illiliti> that would be awesome
<dilyn> so I'll be back after a few reboots haha
dilyn has quit [Quit: Connection closed]
<noocsharp> illiliti: thanks, that's much easier to read than the wayland headers
<noocsharp> seems like command line copy and paste isn't possible with the core wayland protocol, since only the window with keyboard focus can copy things
<noocsharp> so wlr-data-control it is
acheam has quit [Remote host closed the connection]
_ctb has quit [Remote host closed the connection]
akspecs has quit [Remote host closed the connection]
_ctb has joined #kisslinux
akspecs has joined #kisslinux
acheam has joined #kisslinux
dilyn has joined #kisslinux
<dilyn> broken input: http://ix.io/3QiT
<dilyn> working input: http://ix.io/3QiU
<dilyn> Biggest difference between first and second is device enumeration actually happens when it works; libinput is 'initialized' in the first, but no enumeration happens. I don't think there's a way to increase verbosity
<dilyn> places of interest in wayfire code may be src/core/seat/seat.cpp
<illiliti> it happends randomly, right?
<dilyn> jk that code isn't actually that interesting
<dilyn> what do you mean it happens randomly?
<dilyn> it happens every time I start wayfire. no input, regardless of how long I wait
<illiliti> how did you get working input then
<dilyn> oh i rebuilt everything against libudev-zero lmao
<illiliti> ah
<illiliti> sounds like a bug tbh
<dilyn> mhm
<illiliti> post output of: ls -la /dev/input
<dilyn> it's what you would expect
<dilyn> root:input 660
<dilyn> all the devices i would expect to exist are there
<illiliti> post anyway
ehawkvu[m] has quit [Ping timeout: 240 seconds]
ehawkvu[m] has joined #kisslinux
ehawkvu[m] has quit [Read error: Connection reset by peer]
ehawkvu[m] has joined #kisslinux
<illiliti> dilyn: did you know that kiss caches git repos?
<illiliti> that's might be a problem
<dilyn> I did indeed, it's a new thing
<dilyn> but I'm not using git+ i'm using archive/commitnum.tar.gz
<illiliti> ah, that's ok then
<dilyn> it's on my long pursuit to kiss r git :v
<illiliti> kiss b got
illiliti has quit [Quit: brb]
<dilyn> :O  don't do this to me illiliti
illiliti has joined #kisslinux
dilyn has quit [Quit: Connection closed]
<illiliti> pretty sure the bug somewhere in the 0.14.1 wlroots patch
<illiliti> need confirmation that bug is present on latest sway/wlroots
dilyn has joined #kisslinux
<dilyn> I suppose I can test latest wlroots/sway for you
<dilyn> anything to put off learning about io.Reader in golang I suppose
<illiliti> io.Reader is easy if you know interfaces and type assertion
<dilyn> exactly
<dilyn> (:
<testuser[m]> Soon
<dilyn> do you still want to maintain it, just under the umbrella of the org?
<dilyn> I think to transfer the repo you just need to be a member and that can be arranged
mahmutov has quit [Ping timeout: 272 seconds]
mahmutov has joined #kisslinux
<noocsharp> i wrote a 100 line program that lets you paste a fixed string in wlroots
<noocsharp> how is wl-clipboard possibly 1800 lines
<testuser[m]> Show
<illiliti> under umbrella, indeed. i also want to revisit and modernize it a bit
<dilyn> for sure. I'll send the invite now, feel free to transfer it!
<dilyn> built latest libdemi/libinput/wlroots/sway from kiss-libdemi; will reboot and see. Though I've rarely had luck running sway with input being detected at all, so I might not be the best tester lmao
dilyn has quit [Quit: Connection closed]
<illiliti> nice!
<illiliti> dilyn: thanks. will do something today and probably tomorrow
<illiliti> s/and/or/
mahmutov has quit [Ping timeout: 240 seconds]
mahmutov has joined #kisslinux
dilyn has joined #kisslinux
<dilyn> can't even get sway to connect to my outputs :V :V :V
<dilyn> But it seems that libinput also fails to enumerate devices, can try with reverting that commit if you'd like
<illiliti> WLR_DRM_NO_MODIFIERS=1
<dilyn> you're making me try too hard lmao
<illiliti> xd
<dilyn> off we go again :X
dilyn has quit [Quit: Connection closed]
dilyn has joined #kisslinux
<dilyn> illiliti: no changes
<illiliti> ok. we can debug this if you want to continue
<dilyn> do you want me to stick with sway or go back to wayfire?
<dilyn> because i'll have to first get sway working lmfao
<illiliti> doesn't matter
<dilyn> perfecto. more than happy to help!
<illiliti> thanks!
mobinmob has joined #kisslinux
Rohan has quit [Ping timeout: 252 seconds]
illiliti has quit [Quit: leaving]
mahmutov has quit [Ping timeout: 256 seconds]
mahmutov has joined #kisslinux
Rohan has joined #kisslinux
<Rohan> someone here using kde in kiss?
<Rohan> dilyn: kiss KDE is working great?
<dilyn> last I checked, not so much :\
<dilyn> issue with plasmashell crashing or simply not doing what it should when using kwin
<dilyn> but if you set KDE_WM=sowm or some other wm it works quite well, you just won't have the traditional plasma desktop
Rohan has quit [Ping timeout: 240 seconds]
ehawkvu[m] has quit [Read error: Connection reset by peer]
ehawkvu[m] has joined #kisslinux
ehawkvu[m] has quit [Read error: Connection reset by peer]
ehawkvu[m] has joined #kisslinux
ella-0_ has joined #kisslinux
ella-0 has quit [Ping timeout: 240 seconds]
ehawkvu[m] has quit [Read error: Connection reset by peer]
ehawkvu[m] has joined #kisslinux
ehawkvu[m] has quit [Ping timeout: 272 seconds]
ehawkvu[m] has joined #kisslinux
mobinmob has quit [Quit: Connection closed for inactivity]
dilyn has quit [Quit: Connection closed]
Rohan has joined #kisslinux
<Rohan> sad kde will not work
<Rohan> then i will give up my project
ehawkvu[m] has quit [Read error: Connection reset by peer]
ehawkvu[m] has joined #kisslinux
dilyn has joined #kisslinux
<dilyn> @illiliti: this is interesting; http://ix.io/3QkK
<dilyn> we can also move this to github if you'd rather track the issue there
ehawkvu[m] has quit [Ping timeout: 250 seconds]
ehawkvu[m] has joined #kisslinux
ax has joined #kisslinux