Compare commits
2 commits
82a0dc47e3
...
5e6c7a35cb
Author | SHA1 | Date | |
---|---|---|---|
5e6c7a35cb | |||
d549d68c89 |
4 changed files with 14 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM dobu/deps-base-ubuntu-jammy:latest
|
||||
FROM dobu/deps-base-ubuntu-oracular:latest
|
||||
|
||||
ARG UPSTREAM_VERSION
|
||||
|
||||
|
|
1
apps/prismlauncher/README.md
Normal file
1
apps/prismlauncher/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
This image does not have the X11 socket passed through because Minecraft can use native Wayland via the system GLFW option (Workarounds > Native Settings > Use system GLFW) in PrismLauncher.
|
|
@ -1 +1 @@
|
|||
deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr jammy
|
||||
deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr oracular
|
||||
|
|
16
dobu-run.sh
16
dobu-run.sh
|
@ -40,6 +40,12 @@ if [ "$(get_image_label "$image_name" net.typeblog.dobu.x11_required)" == "true"
|
|||
x11_required=true
|
||||
fi
|
||||
|
||||
scaling_params_required=false
|
||||
|
||||
if [ "$(get_image_label "$image_name" net.typeblog.dobu.scaling_params_required)" == "true" ]; then
|
||||
scaling_params_required=true
|
||||
fi
|
||||
|
||||
if [[ -n $PULSE_SERVER ]]; then # remove prefix
|
||||
host_pulse=${PULSE_SERVER#unix:}
|
||||
else # default guess
|
||||
|
@ -90,6 +96,11 @@ if $x11_required; then
|
|||
extra_args="$extra_args -v ${XORG_SRC}:/tmp/.X11-unix/X0 -e DISPLAY=:0"
|
||||
fi
|
||||
|
||||
# Same for scaling params
|
||||
if $scaling_params_required; then
|
||||
extra_args="$extra_args -e GDK_SCALE=$GDK_SCALE -e QT_SCALE_FACTOR=$QT_SCALE_FACTOR -e QT_SCREEN_SCALE_FACTORS=$QT_SCREEN_SCALE_FACTORS -e QT_AUTO_SCREEN_SCALE_FACTOR=$QT_AUTO_SCREEN_SCALE_FACTOR"
|
||||
fi
|
||||
|
||||
# Expose Pipewire socket if it exists
|
||||
if [ -S "$XDG_RUNTIME_DIR/pipewire-0" ]; then
|
||||
extra_args="$extra_args -v $XDG_RUNTIME_DIR/pipewire-0:/xdg_runtime/pipewire-0"
|
||||
|
@ -141,11 +152,6 @@ podman run --rm "${podman_security_args[@]}" --name "$container_name" \
|
|||
-e TZ="$(date +%Z)" \
|
||||
`# SHM is needed by some browser engines (such as CEF used by Steam)`\
|
||||
--shm-size=1G \
|
||||
`# Scaling parameters` \
|
||||
-e GDK_SCALE="$GDK_SCALE" \
|
||||
-e QT_SCALE_FACTOR="$QT_SCALE_FACTOR" \
|
||||
-e QT_SCREEN_SCALE_FACTORS="$QT_SCREEN_SCALE_FACTORS" \
|
||||
-e QT_AUTO_SCREEN_SCALE_FACTOR="$QT_AUTO_SCREEN_SCALE_FACTOR" \
|
||||
`# Use podman's init stub inside the container for better control` \
|
||||
--init \
|
||||
$extra_args "$image_name"
|
||||
|
|
Loading…
Add table
Reference in a new issue