Skip to content

Simplify config path and increase portability#421

Merged
bj00rn merged 1 commit into
thomasnordquist:masterfrom
jcwillox:patch-1
Apr 2, 2024
Merged

Simplify config path and increase portability#421
bj00rn merged 1 commit into
thomasnordquist:masterfrom
jcwillox:patch-1

Conversation

@jcwillox

Copy link
Copy Markdown
Contributor

https://www.electronjs.org/docs/api/app#appgetpathname

The userData directory is equivalent to appData + app.name.
However, it can be overridden with the command line option --user-data-dir, this means users can change the location of where the electron browser data and config data are stored.
e.g. "MQTT Explorer.exe" --user-data-dir=".../data".

@roman-76

Copy link
Copy Markdown

@thomasnordquist could you please merge that PR? this will help store configs for portable version in same location where is portable app installed and improve portability.

@bj00rn

bj00rn commented Apr 2, 2024

Copy link
Copy Markdown
Collaborator

@jcwillox could you rebase this PR on master please, and give it some testing and ill try to get it merged.

Thanks

@bj00rn bj00rn merged commit 736145d into thomasnordquist:master Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants