webui icon indicating copy to clipboard operation
webui copied to clipboard

`webui_set_size` does not work on firefox

Open jinzhongjia opened this issue 1 year ago • 2 comments

More details, refer to this: https://github.com/webui-dev/zig-webui/issues/13

jinzhongjia avatar Jan 04 '24 12:01 jinzhongjia

It will work if the Firefox profile is new (first run), while starting from the second run, Firefox remember the last manually changed size and position, so it ignores the values setting by WebUI command lines.

A quick workaround is by deleting the Firefox profile on exist:

webui_delete_all_profiles();
webui_clean();

We should find a better solution for Firefox.

hassandraga avatar Jan 04 '24 23:01 hassandraga

I'm experimenting some paths, like using user_pref("...");. And other settings to programmatically force Firefox to use the default settings on every run instead of the manually updated size and position.

hassandraga avatar Jan 04 '24 23:01 hassandraga