tinypilot icon indicating copy to clipboard operation
tinypilot copied to clipboard

WiFi dialog: add script for printing marker section contents

Open jotaen4tinypilot opened this issue 7 months ago • 2 comments

Related https://github.com/tiny-pilot/tinypilot/issues/131, part (b). Stacked on https://github.com/tiny-pilot/tinypilot/pull/1804.

I realized that we need to add another privileged script for reading files with marker sections, because we are unable to read those directly via the Python process in case those files are owned by the root user.

Usage is demonstrated in the subsequent backend PR; it’s basically …

/opt/tinypilot-privileged/scripts/print-marker-sections /path/to/file.txt

… where the entire invocation has to be unblocked in the sudoers file.

Review on CodeApprove

jotaen4tinypilot avatar Jul 01 '24 21:07 jotaen4tinypilot