mirror of
https://github.com/mikenye/docker-picard.git
synced 2026-04-18 02:54:08 +02:00
* Attempt to fix issue #29 * Add dbus-x11 (issue #29) * Add --disable-gpu to chrome * Generate /etc/machine-id * Fix /etc/machine-id * Add --disable-software-rasterizer to chrome * Implement dbus * Reduce chromium-browser log-level
This commit is contained in:
18
rootfs/etc/cont-init.d/90-dbus
Normal file
18
rootfs/etc/cont-init.d/90-dbus
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Generate machine-id
|
||||
rm /etc/machine-id > /dev/null 2>&1 || true
|
||||
dbus-uuidgen > /var/lib/dbus/machine-id
|
||||
ln -s /var/lib/dbus/machine-id /etc/machine-id
|
||||
|
||||
# Ensure pid file is removed
|
||||
rm /var/run/dbus/pid > /dev/null 2>&1 || true
|
||||
|
||||
# Ensure directory structure is present
|
||||
mkdir -p /var/run/dbus
|
||||
|
||||
# Ensure messagebus user exists
|
||||
if ! id "messagebus" &>/dev/null; then
|
||||
useradd -r --no-create-home -U messagebus
|
||||
fi
|
||||
5
rootfs/etc/services.d/dbus/run
Normal file
5
rootfs/etc/services.d/dbus/run
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Start dbus
|
||||
dbus-daemon --config-file=/usr/share/dbus-1/system.conf --print-address --nofork
|
||||
14
rootfs/startapp.sh
Executable file
14
rootfs/startapp.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
#shellcheck shell=sh
|
||||
|
||||
set -xe
|
||||
|
||||
# Set homedir to /config to capture all configuration
|
||||
HOME=/config
|
||||
export HOME
|
||||
|
||||
# Unlock Chromium profile
|
||||
rm -rf /config/xdg/config/chromium/Singleton*
|
||||
|
||||
# Launch picard
|
||||
/usr/local/bin/picard
|
||||
Reference in New Issue
Block a user