When an application path has spaces in it, interactions with it beyond opening it fail, as the WebDriver appears to ignore everything after the space.
For example, given the application path "C:\\Users\\Jack S\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" and the below source code...
view_switcher: WebElement = driver.find_element(
By.XPATH, "//Tab[@Name='Active View Switcher']"
)
WebDriverWait(driver, 5).until(ec.visibility_of(view_switcher))
...the visibility check fails because every time it tries to check for the element's presence, it is calling "C:\\Users\\Jack", which results in the following popup appearing on screen (there is a file in C:/Users called 'Jack'):

When an application path has spaces in it, interactions with it beyond opening it fail, as the WebDriver appears to ignore everything after the space.
For example, given the application path
"C:\\Users\\Jack S\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe"and the below source code......the visibility check fails because every time it tries to check for the element's presence, it is calling
"C:\\Users\\Jack", which results in the following popup appearing on screen (there is a file in C:/Users called 'Jack'):