Files
romm/backend/handler/filesystem/launchbox_handler.py
Georges-Antoine Assi 40689d7e39 Fix LaunchBox local-media file:// paths resolving under library root
LaunchBox produced file:// URIs relative to /romm/launchbox, but the
resources handler resolved them under /romm/library via fs_rom_handler,
so local images/manuals/screenshots were never found. Switch LaunchBox
to a distinct launchbox-file:// scheme and add FSLaunchboxHandler +
_resolve_local_file_uri to route each scheme to the correct root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-17 22:59:00 -04:00

10 lines
261 B
Python

from pathlib import Path
from config import ROMM_BASE_PATH
from handler.filesystem.base_handler import FSHandler
class FSLaunchboxHandler(FSHandler):
def __init__(self) -> None:
super().__init__(base_path=str(Path(ROMM_BASE_PATH) / "launchbox"))