Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 13843  / 3 Years ago, fri, october 22, 2021, 5:45:11

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




  1. How to run a MS-DOS application in Wine?


More From » wine

 Answers
2

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:

enter image description here



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:

enter image description here



So with gedit ~/.dosbox/dosbox-0.74.conf we can make this:



midiconfig=


look like this:



midiconfig=14:0


Which gives us this:

enter image description here



Next I added all the way at the end on the next line from where it says MOUNT lines here



mount C: /home/username/dosboxc  


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:

enter image description here

I needed to test that the sound was working anyway.


[#39124] Friday, October 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suspengn

Total Points: 477
Total Questions: 104
Total Answers: 100

Location: Rwanda
Member since Thu, Feb 10, 2022
2 Years ago
;