git.iko.soy/typeable/nixpkgs
on master help sign in
kinit: increase environment limit

Limit is already increased for standard xorg plasma distribution to start, but with wayland, even more libraries being added Increasing this limit to 1 << 20 (1M) seems to be enough (For me length is 80K), and not so much for regular desktops Signed-off-by: Yaroslav Bolyukin <iam@lach.pw>

commit0fbd3e95915eaf65647d96af57abbc8ed8ded58f authorYaroslav Bolyukin <iam@lach.pw> dateWed 23 Dec 2020, 17:45 (6 years ago) parente7659b6
1 file changed+1−1
pkgs/development/libraries/kde-frameworks/kinit/0004-start_kdeinit-environ-hard-limit.patch+1−1
pkgs/development/libraries/kde-frameworks/kinit/0004-start_kdeinit-environ-hard-limit.patch+1−1
@@ -17,7 +17,7 @@ index f2db3e9..4ff2602 100644
1717 if (read(0, &len, sizeof(unsigned)) == sizeof(unsigned)
1818- && len && len < (1 << 12)) {
1919+ && len) {
20−+ if (len >= (1 << 14)) {
20++ if (len >= (1 << 20)) {
2121+ fprintf(stderr, "%s: exceeded environment length limit", argv[0]);
2222+ return 1;
2323+ }