FS#62276 - [dosbox] Register dosbox as dos exes handler

Attached to Project: Community Packages
Opened by Alberto Salvia Novella (es20490446e) - Monday, 08 April 2019, 08:53 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 10 April 2019, 23:02 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If the package does this dos exes, when executed, will open right away into dosbox:

echo ':DOSEXE:M::MZ::/usr/bin/dosbox:' > /proc/sys/fs/binfmt_misc/register
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 10 April 2019, 23:02 GMT
Reason for closing:  Won't implement
Comment by Alberto Salvia Novella (es20490446e) - Wednesday, 10 April 2019, 10:45 GMT
The dosbox shortcut should have:

Exec=dosbox %f

MimeType=application/x-ms-dos-executable
Comment by Eli Schwartz (eschwartz) - Wednesday, 10 April 2019, 23:02 GMT
This conflicts with the existing wine handler, since Windows executables share the same magic number. And wine already optdepends on dosbox and will detect if an executable is a DOS exe, in which case it will start dosbox for you.

Opening a Windows NT executable in dosbox will obviously not work, the binfmt handler would simply be completely wrong.

Loading...