-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Environment variables manager : Value not set properly when create user environment variable with URL value #290
Comments
In my case, the following statement:
Leads to the following value Env variable is not visible in Windows's Env variable window nor it is in the registry. Only visible through the SET cmd and impossible to delete. Only possible to force a new correct value in registry HKEY_CURRENT_USER\Environment |
New test with this syntax (escaping '/' characters) :
but no improvement in the result :
that should be :
|
…lues (#291) To avoid ambiguity, it adds an option to the [Environment variables manager job](https://guts.github.io/qgis-deployment-cli/jobs/environment_variables.html) allowing user to specify value type: ```yaml - name: Set environment variables uses: manage-env-vars with: - name: HTTP_PROXY action: "add" scope: "user" value: "http://proxy.qdt.fr:8080" value_type: url - name: HTTPS_PROXY action: "add" scope: "user" value: "https://proxy.qdtfr:443" value_type: url - name: DISABLE_SSL action: "add" scope: "user" value: False value_type: bool - name: PYQGIS_STARTUP action: "add" scope: "user" value: "~/qgis/startup.py" value_type: path ``` Closes #290
Thanks for reporting. Released in https://github.com/Guts/qgis-deployment-cli/releases/tag/0.26.0 |
Is there an existing issue or a documentation page for this?
Which version of the app are you using?
0.24.0
Operating System
Windows 10+*
Packaging mode
Stand-alone executable (.i.e qdt.exe)
Related resources
scenario.qdt.zip
QGISDeploymentToolbelt_0.24.0.log
Description of the bug
The first step of the scenario file scenario.qdt.yml is to define 2 user environment variables to be added :
The scenario runs successfully, the 2 user environment variables are indeed created but their values are not correct :
Values should be :
Steps to reproduce
QGISDeploymentToolbelt_0-24-0_Windows64bit_Python3-11 deploy -s C:\Installations\Sources\QDT\scenario.qdt.yml -vv
Relevant log output
Comment
It looks as though the string "http://" is badly interpreted by QDT and the %USERPROFILE% value (C:\Users\sitimal) is used to prefix it when writing the value of the environment variable.
The text was updated successfully, but these errors were encountered: