# \[Feature-5311\] JXBrowser EngineOptions

**URL:** <https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279>\
**Category:** Ignition\
**Created:** [September 23, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279 "2021-09-23T19:07:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [September 23, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/1 "2021-09-23T19:07:06Z")

</div>

Is it possible to modify the userDataDir setting of a running JXBrowser instance on a vision window?

```auto
EngineOptions.newBuilder
        .userDataDir(somePath)

```

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [September 23, 2021, 7:59pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/2 "2021-09-23T19:59:48Z")

</div>

Hey @jpark!

It doesn’t look like we expose this directly, but you might be able to do it by providing the correct switch with prefix by setting a system property on the client. It looks like `ignition.chromium.switch.user-data-dir=/some/path/to/userdata` might work.

Let me know if you get that working!  
JJ Coffman

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [October 1, 2021, 4:03pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/3 "2021-10-01T16:03:39Z")

</div>

I’ve added that option in the client launcher jvm argument, but it doesn’t seem to affect anything.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [December 13, 2021, 5:28pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/4 "2021-12-13T17:28:34Z")

</div>

> [@jcoffman](#):
>
> ignition.chromium.switch.user-data-dir=/some/path/to/userdata

@jcoffman  
Adding ignition.chromium.switch.user-data-dir=/some/path/to/userdata doesn't seem to have any effect?

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [December 13, 2021, 7:51pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/5 "2021-12-13T19:51:02Z")

</div>

> [@jcoffman](#):
>
> ignition.chromium.switch.user-data-dir=/some/path/to/userdata

Sorry, probably should have said this a system prop (D prop) so `-Dignition.chromium.switch.user-data-dir=/some/path/to/userdata` defined in the Vision Client Launchers' JVM options in that vision application's settings.

I was able to confirm this works locally. Let me know if that helps.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [December 13, 2021, 8:41pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/6 "2021-12-13T20:41:24Z")

</div>

Obviously I am doing something incorrectly.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/a/0af4dc15c7d9c3f723137a95a4b3a8054ce53113.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 13, 2021, 8:43pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/7 "2021-12-13T20:43:30Z")

</div>

Try forward-slashes or double back-slashes in your path?

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [December 13, 2021, 9:22pm UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/8 "2021-12-13T21:22:57Z")

</div>

I’ve tried every combination of slashes.

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [December 14, 2021, 12:59am UTC](https://forum.inductiveautomation.com/t/feature-5311-jxbrowser-engineoptions/51279/9 "2021-12-14T00:59:25Z")

</div>

Hey Jae,

I did some poking on windows and it looks like JxBrowser is supplying its own user-data-dir on windows which is preventing the one applied as a switch. There is a way to supply this value to JxBrowser directly instead of passing it through to chromium (as you mentioned in your first comment) and Im going to open a ticket to expose that so its available regardless of the OS you are on.
