mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 21:20:36 +08:00
Fix portable directory path (#1403)
This commit is contained in:
parent
c0e141053c
commit
a68fb82eb3
@ -52,7 +52,7 @@ const cli = () => {
|
||||
// Check for portable mode and ensure the user data path is absolute. We assume
|
||||
// that the path is writable if not this lead to an application crash.
|
||||
if (!args['--user-data-dir']) {
|
||||
const portablePath = path.join(app.getAppPath(), 'marktext-user-data')
|
||||
const portablePath = path.join(app.getAppPath(), '..', '..', 'marktext-user-data')
|
||||
if (isDirectory(portablePath)) {
|
||||
args['--user-data-dir'] = portablePath
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user