Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Prevent a second instance of Chromium from opening.

Post Reply
ericktux
Posts: 40
Joined: Thu Oct 29, 2020 10:11 am

Prevent a second instance of Chromium from opening.

Post by ericktux »

Hello friends, I have a question: When I open a second instance of my application, the Chromium browser opens. How can I prevent this and open a second or third instance of my program? Thank you for your time and responses.
User avatar
salvadordf
Posts: 4563
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Prevent a second instance of Chromium from opening.

Post by salvadordf »

Hi,

Read this thread :
https://www.briskbard.com/forum/viewtopic.php?t=2525
ericktux
Posts: 40
Joined: Thu Oct 29, 2020 10:11 am

Re: Prevent a second instance of Chromium from opening.

Post by ericktux »

Thanks a lot, Salvador, I'll check it out.
This code is helping me for now, although it works in private mode:

Code: Select all

GlobalCEFApp.Cache := ExtractFilePath(ParamStr(0)) + 'cache' + IntToStr(GetTickCount);
Post Reply