Conversation

sharing this here
dumb thing i rushed together in about 6 hours (very minor oneshot spoiler but for something that is literally on the wikipedia article for the game)
https://codeberg.org/kemona_halftau/OtherSide
i made this for testing whether a specific mechanic of oneshot will work in a given wayland window manager, without needing to own a linux copy of oneshot
(this is my 2nd time ever writing c code for something)
so far kde plasma 6 and sway both work just fine

2
0
1

niri does not seem to work

0
0
0

@kemona_halftau

char decoded[640*480]; // FIXME: is the stack always large enough??

unfortunately, I don’t think anything can be done about this (except handling the SIGSEGV when you run out of stack space using sigaltstack). getrlimit can be used to get the maximum stack size, but although there is a ru_isrss field in the rusage struct, linux doesn’t actually use it (see getrusage(2))

0
0
1