Added prep-only command (an alternative to install command) for use by an admin user to support unprivileged user installs without fully performing install as admin user.
Reworked venv handling logic.
Documented prep-only usage in README and Wiki.
Added a utility function md_wrap() that allows formatting blocks of quoted text in the code (meant to be printed out in terminal) similarly to Markdown. Will apply its own wrapping and formatting when printing out the text, defaulting to 80 characters suitable for most terminal output, and adding its own line breaks sort of like Markdown syntax rules, without needing to insert a bunch of "\n" at manually wrapped line lengths. Makes it much easier to make changes in large blocks of text.
Reason for Changes:
A user was unable to install Toshy from an unprivileged user account, but had access to an admin account that could be used to "prep" the system for the unprivileged user to be able to install and use Toshy. Certain parts of the install needed to be tagged with a control variable so that privileged steps (using sudo) could be bypassed for an unprivileged user install. Works only if an admin user already took care of the "prep" steps, such as some native package installs and udev rules setup.
Related Issue(s) or PR(s):
278
Testing Done:
User has reported success with installing as unprivileged user on RHEL 8.9, after prepping from an admin user with prep-only. Also tested the process in a VM using AlmaLinux 8.9. Other distro installs and standard install command were checked in other VMs to verify regular install sequence has not been affected.
Description of the Changes:
prep-only
command (an alternative toinstall
command) for use by an admin user to support unprivileged user installs without fully performing install as admin user.venv
handling logic.prep-only
usage in README and Wiki.md_wrap()
that allows formatting blocks of quoted text in the code (meant to be printed out in terminal) similarly to Markdown. Will apply its own wrapping and formatting when printing out the text, defaulting to 80 characters suitable for most terminal output, and adding its own line breaks sort of like Markdown syntax rules, without needing to insert a bunch of "\n" at manually wrapped line lengths. Makes it much easier to make changes in large blocks of text.Reason for Changes:
A user was unable to install Toshy from an unprivileged user account, but had access to an admin account that could be used to "prep" the system for the unprivileged user to be able to install and use Toshy. Certain parts of the install needed to be tagged with a control variable so that privileged steps (using
sudo
) could be bypassed for an unprivileged user install. Works only if an admin user already took care of the "prep" steps, such as some native package installs andudev
rules setup.Related Issue(s) or PR(s):
278
Testing Done:
User has reported success with installing as unprivileged user on RHEL 8.9, after prepping from an admin user with
prep-only
. Also tested the process in a VM using AlmaLinux 8.9. Other distro installs and standardinstall
command were checked in other VMs to verify regular install sequence has not been affected.