Adam Perkowski

Results 134 comments of Adam Perkowski

You should use `"%b\n"` with every `printf` here. Draft this for now.

Adding another line is easy, but there's an issue, empty space: ![image](https://github.com/user-attachments/assets/c36e1a4f-8dcd-458d-aa7e-4371eea902cb) It'd be nice to make the Constraint dynamically assign the lines needed.

> is it possible to make it dynamic depending on the screen size ? It is possible to make it dynamic depending on the number of lines provided by `draw_chortcuts`....

I think #440 #442 #443 approach this better. #422 is clearly copying the changes from them into his own implementation.

@hexisXz Please run `cargo xtask docgen` and push the changes. Thanks.

> > This will only slow linutil down > > ? This PR is adding another rust dependency, more checks and code that has to be maintained. I just think...

> Getting the inlined superuser check functional would need even more code to maintain, and it would be hard to beat 8 lines of bash except by just unquoting all...

@jeevithakannan2 You can use Rust's `libc` to check current UID. I think it has to be unsafe though. Let me check.

Yeah we currently 0% of Linutil's codebase is unsafe. Would be sad to loose that.