From 7ae9d5c6f0505fc12ac183408732af45d358a075 Mon Sep 17 00:00:00 2001 From: SRHTNIN Date: Wed, 7 Oct 2026 23:04:39 +0200 Subject: [PATCH] SaraSort launcher: use {AppDir} and {Python} like SaraFem's Co-Authored-By: Claude Opus 5.5 --- Programs/SaraSort/Templates/Launch.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Programs/SaraSort/Templates/Launch.sh b/Programs/SaraSort/Templates/Launch.sh index 514065b..c606b43 100755 --- a/Programs/SaraSort/Templates/Launch.sh +++ b/Programs/SaraSort/Templates/Launch.sh @@ -1,6 +1,4 @@ -#!/bin/bash -# Desktop-entry launcher: resolves the venv relative to this script rather -# than the caller's cwd, since .desktop Exec= lines are invoked with no -# guaranteed working directory. -cd "$(dirname "$(readlink -f "$0")")/.." || exit 1 -exec .venv/bin/python Main.py "$@" +#!/bin/sh +# Written by SaraSuite. Runs from the app folder so Flet finds assets/. +cd "{AppDir}" || exit 1 +exec "{Python}" Main.py "$@"