headlamp icon indicating copy to clipboard operation
headlamp copied to clipboard

WIP: Headless close backend when close last browser window

Open illume opened this issue 2 years ago • 1 comments

for https://github.com/kinvolk/headlamp/issues/493

illume avatar Apr 21 '22 15:04 illume

I am a bit worried that this maybe lead to undesired exiting of the headlamp process, the rationale being: you open the app as a user, you should close it in a similar manner. For desktop apps, one clicks the icon which opens the app, then we close the window or call quit on the app and it quits the process. For a CLI initiated app though, usually either the process is forked/run in the background, or the user is supposed to close it as they started it (Ctrl+C normally). I also think it may be more normal for a user to close a browser tab and then open another for the same service, an experience that would be broken if the next tab has no server for it to reach.

An alternative would be to add a quit timeout and also a CLI option --auto-quit=false to prevent this behavior.

joaquimrocha avatar Apr 21 '22 16:04 joaquimrocha