We don't escape the slashes in the --profile-directory arg, which I suspect is causing it to fail as the my directory doesn't exist in my example above.
To solve this we need to escape slashes in --profile-directory - we can replace them with - instead in the argument. e.g.
If a profile contains slashes in the name, like
assume -c my/profile
, Chrome will not open. This is because of the args that are passed to Chrome:We don't escape the slashes in the
--profile-directory
arg, which I suspect is causing it to fail as themy
directory doesn't exist in my example above.To solve this we need to escape slashes in
--profile-directory
- we can replace them with-
instead in the argument. e.g.