I know that dosbox is not yet integrated with wine, but whenever I double click on a DOS program (with wine) it just opens dosbox and closes it in the next moment. Why does this happen?
Here is the terminal output:
tachyonsos@tachyons-desktop:~$ wine '/home/tachyonsos/Desktop/TC.EXE'
DOSBox version 0.74
Copyright 2002-2010 DOSBox Team, published under GNU GPL.
---
CONFIG:Loading primary settings from config file /home/tachyonsos/.wine/dosdevices/c:/users/tachyonsos/Temp/cfg1453.tmp
MIXER:Got different values from SDL: freq 44100, blocksize 512
ALSA:Can't subscribe to MIDI port (65:0) nor (17:0)
MIDI:Opened device:none
BTW is it a bug?
Linked QUESTION
Top post edit
By the way, I see the issue you're talking about with the double-clicking. Just launch dosbox and run, or make sure your binary is inside of the .wine/drive_c if that's not the behaviour you want.
end edit
You say dosbox is throwing an error when you run:
tachyonsos@tachyons-desktop:~$ wine '/home/tachyonsos/Desktop/TC.EXE'
Correct your sound settings. If that doesn't work, put it inside the
~/.wine/drive_c
.On my box, when I installed via software center it put a compiled binary in /usr/bin like this:
Configuration files are in ~/.dosbox. The wiki tells us how to configure the file and determine our midi parameters. To get those utilities we need
sudo apt-get install pmidi
.Then we can see something like this:
So with
gedit ~/.dosbox/dosbox-0.74.conf
we can make this:look like this:
Which gives us this:
Next I added all the way at the end on the next line from where it says
MOUNT lines here
Now when I double click an exe it tries to load in dosbox, as it should since I installed that last.
Now I make launchers for the EXEs I want to launch with wine to include the wine command and the URL.
You don't launch things in Dosbox with shortcuts. You load up dosbox and run them. At least that's what I do, and it works for me.
I definitely see no bug here.
Oh, and finally since I installed it anyway:
I needed to test that the sound was working anyway.
Yes it works fine if you run dosbox directly, but there are issues with Wine integration. I think people aren't getting your question.
Wine is supposed to be able to look at a windows executable and hand it off to DOSBox if it determines it needs 16 bit DOS code.
I myself get wine C:/DOS_Games/convert.exe DOSBox version 0.74 Copyright 2002-2010 DOSBox Team, published under GNU GPL. --- CONFIG:Loading primary settings from config file /Users/jeremiah/.wine/dosdevices/c:/users/jeremiah/Temp/cfg208.tmp MIDI:Opened device:coreaudio
This shows Wine is using an incorrect configuration file. Unfortunately Wine generates this file each time it calls DOSBox so fixing this will require submitting a patch or report to Wine's Bugzilla.
Maybe there are additional configuration settings that would correct the generated configuration?
No, it's not a bug, you can't run the DOS programs in Ubuntu using Wine because it only supports Windows or DOS.