{"action":"opened","issue":{"url":"https://api.github.com/repos/baldurk/renderdoc/issues/989","repository_url":"https://api.github.com/repos/baldurk/renderdoc","labels_url":"https://api.github.com/repos/baldurk/renderdoc/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/baldurk/renderdoc/issues/989/comments","events_url":"https://api.github.com/repos/baldurk/renderdoc/issues/989/events","html_url":"https://github.com/baldurk/renderdoc/issues/989","id":324193952,"number":989,"title":"Launch Application not reliably updating environment variables","user":{"login":"cmartel","id":302493,"avatar_url":"https://avatars2.githubusercontent.com/u/302493?v=4","gravatar_id":"","url":"https://api.github.com/users/cmartel","html_url":"https://github.com/cmartel","followers_url":"https://api.github.com/users/cmartel/followers","following_url":"https://api.github.com/users/cmartel/following{/other_user}","gists_url":"https://api.github.com/users/cmartel/gists{/gist_id}","starred_url":"https://api.github.com/users/cmartel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmartel/subscriptions","organizations_url":"https://api.github.com/users/cmartel/orgs","repos_url":"https://api.github.com/users/cmartel/repos","events_url":"https://api.github.com/users/cmartel/events{/privacy}","received_events_url":"https://api.github.com/users/cmartel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-17T21:33:38Z","updated_at":"2018-05-17T21:33:38Z","closed_at":null,"author_association":"NONE","body":"## Description\r\n\r\nI'm trying to use RenderDoc to debug a Qt application targeting a few different kits. In order to avoid copying DLLs around, I just add the required Qt path to PATH when running the executable.\r\n\r\nBut setting environment variables in RenderDoc's Launch Application window doesn't always seem to take hold, and the application fails to start because it doesn't find the DLLs. I tried adding different environment variables and then querying them, to no avail.\r\n\r\nIf I do copy Qt DLLs alongside the test application, it starts up properly and the environment variables appear to be getting set. So it's a bit of a chicken and egg problem as the app won't start if the environment variable isn't getting set, and the environment variable doesn't seem to get set unless the program started correctly.\r\n\r\nWhat's weird is that sometimes the environment variable does seem to \"stick\" without Qt DLLs alongside the application, but I can't narrow down a reliable repro for this.\r\n\r\n[QuickTest.zip](https://github.com/baldurk/renderdoc/files/2014807/QuickTest.zip)\r\n\r\n## Repro steps\r\n\r\n1. Add a TEST_ENV variable to RenderDoc's launch application settings\r\n2. Launch application\r\n3. (Optional) Copy Qt DLLs alongside application\r\n4. From application, query environment variable\r\n\r\n## Environment\r\n\r\n* RenderDoc build: v1.0 and 2018-05-16 nightly\r\n* Operating System: Windows 10\r\n* Qt: 5.10.1\r\n"}}
{"actor":{"display_login":"cmartel"}}