remi icon indicating copy to clipboard operation
remi copied to clipboard

standalone close button

Open Wouter1 opened this issue 3 years ago • 4 comments

MacOS, Catalina and Big Sur: If you run a standalone application, and click the close button of the window (top left, red X button) the app does not close. command-Q works . I tried several suggestions for the code like ​https://github.com/dddomodossola/remi/issues/453 and ​https://github.com/dddomodossola/remi/blob/master/examples/onclose_window_app.py but nothing ever triggered even the close function.

Maybe part of the solution: In java, I remember that on macos you needed a separate close-button listener and map it to the application quit mechanism. Maybe it works like that here too?

Wouter1 avatar Nov 11 '21 15:11 Wouter1

@Wouter1 Unfortunately I cannot test on MaxOS. However I suggest to not use standalone.

Kind Regards

dddomodossola avatar Nov 13 '21 20:11 dddomodossola

I'd like to remark that one of the main reasons for me to use remi is that it creates BOTH a webapp AND a standalone.

So, Is the remi stand-alone running possibilty officially supported ?

I'll investigate further into the issue with the standalone runner on big sur. I suspect that the person that reported it to me did just not notice that the standalone window opened behind some other windows (which is a separate but less urgent issue).

Wouter1 avatar Nov 16 '21 08:11 Wouter1

@Wouter1 I see your point of view. Remi works on almost every browser as a remote or local GUI, with a look n feel and an API identical (and maybe better) than other GUI libraries. The "standalone" running ability is just a simple api that allows to hide the browser window and look a bit less web. This is possible thanks to third party lib like pywebview. Unfortunately, such libraries can be affected by bugs too, and (you can imagine) I cannot investigate and fix other libraries to work better with remi. This is why I discourage the use of standalone. Kind Regards ;-)

dddomodossola avatar Nov 22 '21 22:11 dddomodossola

@dddomodossola Thanks for the clarification. I understand that bugs in pywebview are out of your control.

But if you detect a bug in pywebview that impacts remi's behaviour, I suppose you file a bug report with pywebview?

Assuming pywebview properly supported, bugs would be ironed out that way? If not, would it be worth considering using a better supported standalone tool?

Wouter1 avatar Nov 23 '21 08:11 Wouter1