Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify multiple instances? #3277

Closed
fanrongqitiancai opened this issue May 24, 2022 · 1 comment
Closed

How to modify multiple instances? #3277

fanrongqitiancai opened this issue May 24, 2022 · 1 comment

Comments

@fanrongqitiancai
Copy link

Question description

I want to open multiple marktexts at the same time. How to modify the code to achieve,

marktext\src\main\index. js

There is a piece of code in

// Make MarkText a single instance application.

if (!process.mas && process.env.NODE_ENV !== 'development') {

const gotSingleInstanceLock = app. requestSingleInstanceLock()

if (!gotSingleInstanceLock) {

process. stdout. write('Other MarkText instance detected: exiting...\n')

app. exit()

}

}

I commented and there was an error in the compilation.

@fxha
Copy link
Contributor

fxha commented May 24, 2022

You can open multiple editor windows of MarkText or use a different application data directory. Starting MarkText without the lock above may lead to undefined behavior and isn't supported.

@fxha fxha closed this as completed May 24, 2022
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

No branches or pull requests

2 participants