mirror of
https://github.com/nestriness/nestri.git
synced 2026-03-17 03:43:07 +02:00
21 lines
759 B
Bash
21 lines
759 B
Bash
#!/bin/bash
|
|
|
|
export USER=${NESTRI_USER}
|
|
export LANG=${NESTRI_LANG}
|
|
export HOME=${NESTRI_HOME}
|
|
export XDG_RUNTIME_DIR=${NESTRI_XDG_RUNTIME_DIR}
|
|
|
|
# Causes some setups to break
|
|
export PROTON_NO_FSYNC=1
|
|
|
|
# Skip first core automatically, to allow nestri-server to work as best as it can
|
|
export PROTON_CPU_TOPOLOGY=$(nproc | awk '{print $1-1 ":"}')$({ seq 1 $(($(nproc) - 1)) | paste -sd, -; })
|
|
export WINE_CPU_TOPOLOGY=$(nproc | awk '{print $1-1 ":"}')$({ seq 1 $(($(nproc) - 1)) | paste -sd, -; })
|
|
|
|
# Make gstreamer GL elements work without display output (NVIDIA issue..)
|
|
export GST_GL_API=gles2
|
|
export GST_GL_WINDOW=surfaceless
|
|
|
|
# Gamescope does not respect MangoHud default config location
|
|
export MANGOHUD_CONFIGFILE=/etc/nestri/configs/MangoHud/MangoHud.conf
|