mirror of
				https://github.com/linuxserver/docker-webtop.git
				synced 2025-10-27 01:13:55 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			445 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			445 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #! /bin/bash
 | |
| 
 | |
| BIN=/usr/bin/chromium-browser
 | |
| 
 | |
| # Bugfix for Chromium in Alpine
 | |
| export GTK_THEME=Adwaita:light
 | |
| 
 | |
| # Cleanup
 | |
| if ! pgrep chromium > /dev/null;then
 | |
|   rm -f $HOME/.config/chromium/Singleton*
 | |
| fi
 | |
| 
 | |
| # Run normally on privved containers or modified un non priv
 | |
| if grep -q 'Seccomp:.0' /proc/1/status; then
 | |
|   ${BIN} --no-first-run --password-store=basic "$@"
 | |
| else
 | |
|   ${BIN} --no-first-run --password-store=basic --no-sandbox --test-type "$@"
 | |
| fi
 |