diff --git a/custom_startup.sh b/custom_startup.sh index 426e328..29b7845 100644 --- a/custom_startup.sh +++ b/custom_startup.sh @@ -9,5 +9,20 @@ if [[ -x $STARTUPDIR/maximize_window.sh ]]; then bash $STARTUPDIR/maximize_window.sh & fi -# Run Forge and wait for it to close +# Set up shared card image cache +SHARED_CACHE="/forge-shared-cache" +FORGE_CACHE="$HOME/.cache/forge/pics" + +mkdir -p "$(dirname "$FORGE_CACHE")" + +# Replace cache with symlink if needed +if [ ! -L "$FORGE_CACHE" ]; then + rm -rf "$FORGE_CACHE" + ln -s "$SHARED_CACHE" "$FORGE_CACHE" + echo "✔ Forge image cache linked to $SHARED_CACHE" +else + echo "ℹ Forge image cache already linked" +fi + +# Launch Forge exec /opt/forge/forge.sh