flawiddsouza / Restfox

Offline-First Minimalistic HTTP & Socket Testing Client for the Web & Desktop

Home Page:https://restfox.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot start Restfox twice

WolfgangHG opened this issue · comments

By accident I noticed that you cannot start another Restfox instance if it is already running: the second window just stays blank besides the title bar:
image

This is not really a problem but it irritated me the first time ;-)

I'll keep this open but Restfox is currently not designed to be run in two windows. As data doesn't sync between windows if it's modified in one window. The issue you're describing seems to be caused by electron getting an exclusive lock on the indexeddb store, for one window, so the other window isn't able to access it. Will be moving to sqlite / some other store for electron in the near future. That should fix this and allow you to open two or more windows of Restfox.

In my mind there is no need to invest too much time in starting Restfox twice. It would be OK if the second instance shows an error message "already running" and then closes. The way I use it, I can't think of starting two Restfox instances and working in both.

I just ran into this as well and got scared that Restfox suddenly deleted all my workspaces. Turns out there was another instance running in the background. Some kind of error would be really appreciated here.

Sorry about that. Will prioritize this for the next release.

This is now resolved as of commit: 7c8bd54. Will be available in the next release.