mirror of
https://github.com/andersrh/flatpak.git
synced 2026-06-11 08:48:03 +00:00
Initial commit
This commit is contained in:
commit
d343c58c1e
8 changed files with 283 additions and 0 deletions
19
com.binance.desktop/binance-desktop.sh
Normal file
19
com.binance.desktop/binance-desktop.sh
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
EXTRA_ARGS=()
|
||||
|
||||
declare -i USE_WAYLAND="${USE_WAYLAND:-0}"
|
||||
|
||||
if [[ "${USE_WAYLAND}" -eq 1 && "${XDG_SESSION_TYPE}" == "wayland" ]]; then
|
||||
EXTRA_ARGS+=(
|
||||
"--enable-features=WaylandWindowDecorations"
|
||||
"--ozone-platform=wayland"
|
||||
)
|
||||
fi
|
||||
|
||||
|
||||
echo "Debug: Will run Binance Desktop with the following arguments: ${EXTRA_ARGS[@]}"
|
||||
echo "Debug: Additionally, user gave: $@"
|
||||
|
||||
export TMPDIR="${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}"
|
||||
exec zypak-wrapper /app/Binance/binance "${EXTRA_ARGS[@]}" "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue