Skip to content

Open FDI disk images from Finder#43

Merged
desertkun merged 1 commit into
masterfrom
fdi
May 24, 2026
Merged

Open FDI disk images from Finder#43
desertkun merged 1 commit into
masterfrom
fdi

Conversation

@morozov
Copy link
Copy Markdown
Member

@morozov morozov commented May 24, 2026

FuseX already supports FDI images, but the only way to actually load one is File → Open. Any other entry point — double-clicking in Finder, dropping onto the app icon, or open -a FuseX foo.fdi from a shell against a fresh launch — silently drops the file.

Declare the .fdi extension in Info-FuseX.plist so Launch Services routes it to FuseX, and add the LIBSPECTRUM_CLASS_DISK_GENERIC case (FDI's class) to the cold-launch openFile: switch. Without the latter the file path is silently dropped on cold launch and setup_start_files has nothing to autoload.

GENERIC routes to settings_current.betadisk_file, matching the fallback in fuse.c's parse_nonoption_args and the most common real-world use of FDI (Beta 128 / TR-DOS).

Declare the .fdi extension in Info-FuseX.plist so Launch Services
routes it to FuseX, and add the LIBSPECTRUM_CLASS_DISK_GENERIC
case (FDI's class) to the cold-launch openFile: switch. Without
the latter the file path is silently dropped on cold launch and
setup_start_files has nothing to autoload.

GENERIC routes to settings_current.betadisk_file, matching the
fallback in fuse.c's parse_nonoption_args and the most common
real-world use of FDI (Beta 128 / TR-DOS).
@desertkun desertkun merged commit f95740a into master May 24, 2026
2 checks passed
@desertkun desertkun deleted the fdi branch May 24, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants