qgis_deployment_toolbelt.utils.linux_utils module¶
Utilities specific for Linux.
Author: Julien Moura (https://github.com/guts)
- qgis_deployment_toolbelt.utils.linux_utils.bash_user_which_file_to_store() Path¶
Determine which file to use to store environment variables.
- Returns:
path to the file to use
- Return type:
Path
- qgis_deployment_toolbelt.utils.linux_utils.delete_environment_variable(envvar_name: str, scope: Literal['system', 'user'] = 'user') bool¶
Remove environment variable from Linux profile file.
- qgis_deployment_toolbelt.utils.linux_utils.find_key_from_values(value_to_find: str) str | None¶
Finds the key corresponding to a given value in a dictionary where values are tuples.
- qgis_deployment_toolbelt.utils.linux_utils.get_environment_variable(envvar_name: str, scope: str = 'user') str | None¶
Get environment variable from Linux profile file.
- qgis_deployment_toolbelt.utils.linux_utils.get_profile_file(scope: Literal['system', 'user']) Path | None¶
Get Linux profile file depending on shell and scope.
- qgis_deployment_toolbelt.utils.linux_utils.refresh_environment() bool¶
Just here to be equivalent with Windows logic.
TODO: refacto merging win32 methods in a single class.
- Returns:
always True
- Return type: