mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-12 11:31:08 +00:00
Conflicts resolved keeping both sides: main's comment cleanup (#764) taken where only comments differed; the test branch's code kept everywhere else. ensureAuto runs main's Quest auto drivers before the Mali paths; vkp_update_map keeps the Quest layer path and the completion-unknown check (pass_begin goes through it); gamescope backend selection plus main's steam-mode cursor composite; droiddeck-session's watcher is main's shared loop with the Venus GL probe after it; SessionFiles/runtime_inputs/build.yml carry both the Xclipse layer and main's VR assets. Main's GPU detection test follows the non-Adreno support text; the Steam presentation test finds its block by code, not by a removed comment.
19 lines
934 B
Bash
19 lines
934 B
Bash
#!/bin/sh
|
|
export XDG_SESSION_TYPE=x11
|
|
starts=/tmp/droiddeck-mangoapp-starts
|
|
now=$(date +%s)
|
|
recent=$(awk -v now="$now" '$1 > now - 60' "$starts" 2>/dev/null)
|
|
printf '%s\n%s\n' "$recent" "$now" | sed '/^$/d' > "$starts"
|
|
if [ "$(wc -l < "$starts")" -gt 5 ]; then
|
|
echo "mangoapp: started $(wc -l < "$starts") times in 60 s; the performance overlay stays off for this session" >&2
|
|
exec sleep infinity
|
|
fi
|
|
# The system PowerVR route (BL_POWERVR_RENDER_NODE): Zink could not make mangoapp a swapchain there
|
|
# ("zink: could not create swapchain", then GLXBadCurrentWindow) and it crashed at every start. The
|
|
# overlay is a few text lines: llvmpipe draws it.
|
|
if [ -n "${BL_POWERVR_RENDER_NODE:-}" ]; then
|
|
export GALLIUM_DRIVER=llvmpipe LIBGL_ALWAYS_SOFTWARE=1
|
|
unset MESA_LOADER_DRIVER_OVERRIDE LIBGL_KOPPER_DRI2
|
|
fi
|
|
LD_LIBRARY_PATH=/usr/local/lib/mangoapp${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} exec /usr/local/lib/mangoapp/mangoapp "$@"
|