From 265c1fecf63ad2c2383bd7de7be6d33a32f0b77d Mon Sep 17 00:00:00 2001 From: SulfurNitride Date: Wed, 18 Mar 2026 08:18:53 -0500 Subject: Add per-session timestamped log files in launch directory, keep last 5 Each launch creates a new mo_interface_YYYY-MM-DD_HH-MM-SS.log in a logs/ folder next to where fluorine-manager was run from. Old logs are cleaned up to keep only the 5 most recent. Launcher scripts export FLUORINE_LAUNCH_DIR before cd'ing to the bin directory so the C++ side knows the original working directory. Co-Authored-By: Claude Opus 4.6 --- docker/build-inner.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docker') diff --git a/docker/build-inner.sh b/docker/build-inner.sh index 2d32e31..98b8932 100755 --- a/docker/build-inner.sh +++ b/docker/build-inner.sh @@ -432,6 +432,7 @@ unset PYTHONPATH PYTHONNOUSERSITE PYTHONHOME MO2_PYTHON_DIR export QT_PLUGIN_PATH="${RUN}/qt6plugins" export QT_QPA_PLATFORM_PLUGIN_PATH="${RUN}/qt6plugins/platforms" +export FLUORINE_LAUNCH_DIR="${PWD}" cd "${RUN}" exec "${RUN}/ModOrganizer-core" "$@" LAUNCH @@ -662,6 +663,7 @@ export QT_ICON_THEME_NAME="${QT_ICON_THEME_NAME:-breeze}" export QT_STYLE_OVERRIDE="${QT_STYLE_OVERRIDE:-Breeze}" export XDG_CURRENT_DESKTOP="${XDG_CURRENT_DESKTOP:-KDE}" +export FLUORINE_LAUNCH_DIR="${PWD}" cd "${APPIMAGE_DIR}" exec "${BIN}/ModOrganizer-core" "$@" APPRUN -- cgit v1.3.1