mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-06 16:51:20 +00:00
* disable the File::HomeDir override performed by Portable.pm - achieved by removing the HomeDir section from "portable.perl" via post_install - ref: https://rt.cpan.org/Ticket/Display.html?id=105395 @@ https://archive.is/q7BYq .# DISCUSSION Strawberry Portable Perl is written to be usable from a non-privileged storage location, such as a plug-in USB drive. So, it is designed to be usable without access to the host filesystem beyond it's own directory. As part of the machinations making this possible, Portable.pm overrides File::HomeDir to return resultant paths which are within the perl installation directory (specifically, "<INSTALL_DIR>/data"). Obviously, this obscures the user's true home directory and can be very inconvenient for common perl scripts which depend on access to data within the user's home directory (i.e., reading ".netrc"). This override/redirection is unnecessary for an installation by the user into the usual host filesystem (such as is done via `scoop`). Such an install has user level privileges and will be able to access any user-accessible portion of the file system.
Description
Languages
PowerShell
100%