requestInstallPackagesPermission
Requests the necessary permission to install packages based on the detected operating system.
The method identifies the current operating system and performs the necessary steps or logs the appropriate handling mechanism for installing packages. The behavior depends on the detected platform:
Windows: No elevation request is necessary, as package installation does not typically require additional privileges in the context of this application.
Linux: Package installation is handled using
pkexec
for privilege elevation.Mac: Elevation handling for package installation is not implemented yet.
Other/Unknown OS: The method logs the lack of support for package installation on unsupported or unidentified operating systems.
This method does not provide feedback to the user or take any direct installation actions but ensures appropriate logging and handling mechanisms for each supported platform.