mirror of
https://github.com/fn2006/PollyMC.git
synced 2025-09-11 08:04:56 -04:00
Move ENV variables into Flatpak manifest
PATH should be set at all times and not only when run though the start script Signed-off-by: zocker-160 <zocker1600@posteo.net>
This commit is contained in:
parent
8b3e231a52
commit
9bdf004797
@ -32,6 +32,8 @@ finish-args:
|
|||||||
- --filesystem=xdg-run/app/com.discordapp.Discord:create
|
- --filesystem=xdg-run/app/com.discordapp.Discord:create
|
||||||
# Mod drag&drop
|
# Mod drag&drop
|
||||||
- --filesystem=xdg-download:ro
|
- --filesystem=xdg-download:ro
|
||||||
|
- --env=PATH=/app/bin:/usr/bin:/app/utils/gamescope/bin:/app/utils/mangohud/bin
|
||||||
|
- --env=VK_LAYER_PATH=/usr/lib/extensions/vulkan/share/vulkan/implicit_layer.d
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
- /lib/libGLU*
|
- /lib/libGLU*
|
||||||
@ -167,3 +169,8 @@ modules:
|
|||||||
path: prime-run
|
path: prime-run
|
||||||
- type: file
|
- type: file
|
||||||
path: pollymc
|
path: pollymc
|
||||||
|
|
||||||
|
- name: extensions
|
||||||
|
buildsystem: simple
|
||||||
|
build-commands:
|
||||||
|
- mkdir -p ${FLATPAK_DEST}/utils/{gamescope,mangohud}
|
||||||
|
@ -5,7 +5,4 @@ for i in {0..9}; do
|
|||||||
test -S "$XDG_RUNTIME_DIR"/discord-ipc-"$i" || ln -sf {app/com.discordapp.Discord,"$XDG_RUNTIME_DIR"}/discord-ipc-"$i";
|
test -S "$XDG_RUNTIME_DIR"/discord-ipc-"$i" || ln -sf {app/com.discordapp.Discord,"$XDG_RUNTIME_DIR"}/discord-ipc-"$i";
|
||||||
done
|
done
|
||||||
|
|
||||||
export PATH="${PATH}${PATH:+:}/usr/lib/extensions/vulkan/gamescope/bin:/usr/lib/extensions/vulkan/MangoHud/bin"
|
|
||||||
export VK_LAYER_PATH="/usr/lib/extensions/vulkan/share/vulkan/implicit_layer.d/"
|
|
||||||
|
|
||||||
exec /app/bin/pollyrun "$@"
|
exec /app/bin/pollyrun "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user