mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-14 10:28:11 +02:00
13 lines
766 B
Bash
Executable File
13 lines
766 B
Bash
Executable File
#!/bin/sh
|
|
# Written by SaraSuite. Runs from the client's folder so Flet finds assets/.
|
|
# A Flet client copy with the window app ID srhtnin.{Name}, so the desktop
|
|
# matches the window to {Name}.desktop (StartupWMClass) instead of showing it
|
|
# as "com.appveyor.flet". Empty if that fails: Flet then uses its own client.
|
|
export FLET_VIEW_PATH="$("{Python}" "{ProgramDir}/FletIdentity.py" "srhtnin.{Name}")"
|
|
# Libraries Flet's window needs that this system lacks (libsecret), from
|
|
# SaraSuite: FletIdentity.py puts them beside the client copy.
|
|
Fallback="$FLET_VIEW_PATH/../fallback-libs"
|
|
[ -n "$FLET_VIEW_PATH" ] && [ -d "$Fallback" ] && export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$Fallback"
|
|
cd "{AppDir}/Client" || exit 1
|
|
exec "{Python}" Main.py "$@"
|