linuxserver / docker-chromium

Web accessible Chromium inside an Debian Container
GNU General Public License v3.0
122 stars 40 forks source link

[BUG] Chromium should auto-restart when its last window is closed and the app hence shut down #8

Closed GlassedSilver closed 1 year ago

GlassedSilver commented 1 year ago

Is there an existing issue for this?

Current Behavior

It stays closed, blank desktop showing

Expected Behavior

see title, that's also how ich777's container image behaves. 👌

Steps To Reproduce

  1. close every window of chromium

Environment

- OS:unRAID 6.11.5
- How docker service was installed:
bundled with OS

CPU architecture

x86-64

Docker creation

docker run
  -d
  --name='chromium'
  --net='bridge'
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Ahri"
  -e HOST_CONTAINERNAME="chromium"
  -e 'PUID'='99'
  -e 'PGID'='100'
  -e 'UMASK'='022'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:3000]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/chromium-logo.png'
  -p '3000:3000/tcp'
  -p '3001:3001/tcp'
  -v '/mnt/user/appdata/chromium':'/config':'rw'
  --shm-size=1gb 'lscr.io/linuxserver/chromium'

6ae2d29fe60943d0744795f18c3f136ad5c4fc90c6263b8aea74d4cf637cc81a

Container logs

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────

[custom-init] No custom files found, skipping...
[ls.io-init] done.
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

Xvnc KasmVNC 1.1.0 - built May 14 2023 00:46:06
Copyright (C) 1999-2018 KasmVNC Team and many others (see README.me)
See http://kasmweb.com for information on KasmVNC.
Underlying X server release 12014000, The X.Org Foundation

Obt-Message: Xinerama extension is not present on the server
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

OrpheeGT commented 1 year ago

Hello,

until it is fixed, you can consider the following extension : https://chrome.google.com/webstore/detail/dont-close-window-with-la/dlnpfhfhmkiebpnlllpehlmklgdggbhn

GlassedSilver commented 1 year ago

Hello,

until it is fixed, you can consider the following extension : https://chrome.google.com/webstore/detail/dont-close-window-with-la/dlnpfhfhmkiebpnlllpehlmklgdggbhn

Hey, thanks for the suggestion, but unfortunately this is not an option for me since I like to use closing of the last tab as reset procedure in combination with clearing all cookies etc...

OrpheeGT commented 1 year ago

Hello, until it is fixed, you can consider the following extension : https://chrome.google.com/webstore/detail/dont-close-window-with-la/dlnpfhfhmkiebpnlllpehlmklgdggbhn

Hey, thanks for the suggestion, but unfortunately this is not an option for me since I like to use closing of the last tab as reset procedure in combination with clearing all cookies etc...

I agree / understand. This is at least a workaround to avoid restarting whole container when you close latest tab X button... It still does not workaround if you close the browser with right X button...

aptalca commented 1 year ago

You can right click on the desktop and select chromium to start it again. No need to restart the container.

I don't belive an auto start is intended or planned for this image as the behavior is controlled by the kasmvnc baseimage.

Closing as it's not a bug.

GlassedSilver commented 1 year ago

You can right click on the desktop and select chromium to start it again. No need to restart the container.

I don't belive an auto start is intended or planned for this image as the behavior is controlled by the kasmvnc baseimage.

Closing as it's not a bug.

Thanks for the tip!

For mobile users it's touch and hold and it works fine. :) 👍