Skip to content

Commit

Permalink
fix: allow Sway on Steam image
Browse files Browse the repository at this point in the history
  • Loading branch information
ABeltramo committed Jul 4, 2024
1 parent 7aef7be commit e0ac331
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
22 changes: 11 additions & 11 deletions images/base/overlay/etc/cont-init.d/30-nvidia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ if [ -L /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so.1 ]; then
}' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
fi

if [ ! -f /etc/vulkan/icd.d/nvidia_icd.json ]; then
gow_log "Creating json nvidia_icd.json file"
mkdir -p /etc/vulkan/icd.d/
echo '{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.3.205"
}
}' > /etc/vulkan/icd.d/nvidia_icd.json
if [ ! -f /usr/share/vulkan/icd.d/nvidia_icd.json ]; then
gow_log "Creating json nvidia_icd.json file"
mkdir -p /etc/vulkan/icd.d/
echo '{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "libGLX_nvidia.so.0",
"api_version" : "1.3.242"
}
}' > /etc/vulkan/icd.d/nvidia_icd.json
fi

if [ ! -f /usr/share/egl/egl_external_platform.d/15_nvidia_gbm.json ]; then
Expand All @@ -79,7 +79,7 @@ if [ -L /usr/lib/x86_64-linux-gnu/libnvidia-allocator.so.1 ]; then
echo '{
"file_format_version" : "1.0.0",
"ICD": {
"library_path": "ibnvidia-egl-gbm.so.1"
"library_path": "libnvidia-egl-gbm.so.1"
}
}' > /usr/share/egl/egl_external_platform.d/15_nvidia_gbm.json
fi
Expand Down
8 changes: 8 additions & 0 deletions images/steam/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ if [ -n "$RUN_GAMESCOPE" ]; then
# Start Steam
# shellcheck disable=SC2086
dbus-run-session -- /usr/games/steam ${STEAM_STARTUP_FLAGS}

elif [ -n "$RUN_SWAY" ]; then
# Start IBus to enable showing the steam on-screen keyboard
/usr/bin/ibus-daemon -d -r --panel=disable --emoji-extension=disable

# Start Steam
source /opt/gow/launch-comp.sh
launcher /usr/games/steam ${STEAM_STARTUP_FLAGS}
else
# shellcheck disable=SC2086
exec /usr/games/steam ${STEAM_STARTUP_FLAGS}
Expand Down

0 comments on commit e0ac331

Please sign in to comment.