m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.95k stars 449 forks source link

Startpage for browser #312

Closed cedricbieder closed 1 year ago

cedricbieder commented 1 year ago

Hi,

based on that answer I tried to open youtube as the default page, but it seems not to work.

Here is my config: cat /etc/neko/supervisord/chromium.conf

[program:chromium] environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" command=/usr/bin/chromium --window-position=0,0 --display=%(ENV_DISPLAY)s --user-data-dir=/home/neko/.config/chromium --no-first-run --start-maximized --bwsi --force-dark-mode --disable-file-system --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage --URL=https://youtube.com stopsignal=INT autorestart=true priority=800 user=%(ENV_USER)s stdout_logfile=/var/log/neko/chromium.log stdout_logfile_maxbytes=100MB stdout_logfile_backups=10 redirect_stderr=true

[program:openbox] environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s" command=/usr/bin/openbox --config-file /etc/neko/openbox.xml autorestart=true priority=300 user=%(ENV_USER)s

Can somebody share with me please the correct conf? Thank you.

PS. I tried it also with small "url".

m1k1o commented 1 year ago

I don't think --url= is valid. It looks like only URL alone is acceted: https://superuser.com/a/716843 so just https://youtube.com/.

cedricbieder commented 1 year ago

Thank you for bringing me on the right track. What I was searching for is without kiosk:

--new-window https://youtube.com

Another solution would be this, https://github.com/m1k1o/neko/issues/289#issue-1670007453, but is not necessary for my work case.