mirror of
https://github.com/webui-dev/webui
synced 2025-03-28 21:13:17 +00:00
Fix app & kiosk mode in chromium browsers
This commit is contained in:
parent
0cd8ab02fe
commit
254e3733b2
Binary file not shown.
BIN
build/Linux/GCC/webui-2-x64.so
Normal file → Executable file
BIN
build/Linux/GCC/webui-2-x64.so
Normal file → Executable file
Binary file not shown.
BIN
examples/C/minimal/Linux/GCC/main
Executable file
BIN
examples/C/minimal/Linux/GCC/main
Executable file
Binary file not shown.
BIN
examples/C/minimal/Linux/GCC/main-dyn
Executable file
BIN
examples/C/minimal/Linux/GCC/main-dyn
Executable file
Binary file not shown.
68
src/webui.c
68
src/webui.c
@ -2925,14 +2925,14 @@ bool _webui_browser_start_chrome(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if(_webui_run_browser(win, full) == 0) {
|
||||
|
||||
@ -2963,14 +2963,14 @@ bool _webui_browser_start_edge(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if(_webui_run_browser(win, full) == 0) {
|
||||
|
||||
@ -3001,14 +3001,14 @@ bool _webui_browser_start_epic(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if(_webui_run_browser(win, full) == 0) {
|
||||
|
||||
@ -3039,14 +3039,14 @@ bool _webui_browser_start_vivaldi(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if(_webui_run_browser(win, full) == 0) {
|
||||
|
||||
@ -3077,14 +3077,14 @@ bool _webui_browser_start_brave(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if(_webui_run_browser(win, full) == 0) {
|
||||
|
||||
@ -3150,14 +3150,14 @@ bool _webui_browser_start_yandex(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if(_webui_run_browser(win, full) == 0) {
|
||||
|
||||
@ -3188,14 +3188,14 @@ bool _webui_browser_start_chromium(_webui_window_t* win, const char* address) {
|
||||
|
||||
char arg[1024];
|
||||
|
||||
char kiosk_arg[16] = {0};
|
||||
char kiosk_arg[24] = "--app=";
|
||||
if(win->kiosk_mode)
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s ", win->profile_path, kiosk_arg);
|
||||
sprintf(kiosk_arg, "--chrome-frame --kiosk ");
|
||||
|
||||
sprintf(arg, " --user-data-dir=\"%s\" --no-first-run --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions --disable-background-mode --disable-plugins --disable-plugins-discovery --disable-translate --bwsi --disable-sync --disable-sync-preferences %s", win->profile_path, kiosk_arg);
|
||||
|
||||
char full[1024];
|
||||
sprintf(full, "%s%s%s", win->browser_path, arg, address);
|
||||
sprintf(full, "%s%s\"%s\"", win->browser_path, arg, address);
|
||||
|
||||
if (_webui_run_browser(win, full) == 0) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user