Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the .conf file under macOS (installed under home brew)? #5257

Open
2 tasks done
kwccoin opened this issue Oct 27, 2024 · 4 comments
Open
2 tasks done

Where is the .conf file under macOS (installed under home brew)? #5257

kwccoin opened this issue Oct 27, 2024 · 4 comments
Labels

Comments

@kwccoin
Copy link

kwccoin commented Oct 27, 2024

Question

Refer to the wiki page

(Windows)  C:\Users\<username>\AppData\Local\DOSBox-X\dosbox-x-<version number>.conf
(Linux)    ~/.config/dosbox-x/dosbox-x-<version number>.conf
(macOS)    ~/Library/Preferences/DOSBox-X <version number> Preferences

I can update the windows one so to use it to do mounting.

But based on above I tried to the same with macOS, I cannot find it. Any hint where I can find it.

Actually I do want to do a bit more like update config.sys (FILES=20) and update autoexec.bat (add c:\tp\bin) after mount.

(I wonder whether it is related to my use of homebrew to install it. Also is it a good idea to clone the reference.conf and use it on my home directory instead of updating the default .conf of the system?)

Have you checked that no similar question(s) exist?

  • I have searched and didn't find any similar question.

Code of Conduct & Contributing Guidelines

  • I agree to follow the code of conduct and the contributing guidelines.
@kwccoin
Copy link
Author

kwccoin commented Oct 27, 2024

My temporary solution on MacOS (M2) is to use command line and batch file as follows.

But really where is the conf file? And is config.sys with "Files=20" necessary?


dosbox-x -c 'mount c . && c:\A.BAT'

A.BAT

REM TP7 require PATH=C:\DOS;C:\TP\BIN
REM dosbos-x is PATH=Z:\;Z:\SYSTEM;Z:\BIN;Z:\4DOS;Z:\DEBUG;Z:\TEXTUTIL

@set path=%path%;C:\TP\BIN
PATH
C:
CD C:\ZDN2GW4B

REM For my Turbo Bridge debugging

TPC BRIDGE.PAS /B
BRIDGE

@wpcwzy
Copy link

wpcwzy commented Oct 27, 2024

I found the config file might be in /opt/homebrew/var/homebrew/linked/dosbox-x/share/dosbox-x

After renaming the dosbox-x.preference.conf to dosbox-x.conf and changing some options in it, it does take effect (like fullscreen on startup).

I'm using macOS 15.0.1 on M3 air and my brew version is Homebrew 4.2.2. The dosbox-x I installed by brew has the version stable 2024.10.01

@maron2000
Copy link
Contributor

If you use the official build (NOT homebrew), the location of the conf file is indeed where it is mentioned in the wiki page.

@maron2000
Copy link
Contributor

maron2000 commented Oct 28, 2024

For some reason if mac cannot search for files, you can explicitly designate the conf file to load from command line.
dosbox-x -conf conf_file_you_want_to_load.conf
It should be easier than entering commands directly in the command line.

You can fetch a sample and rename it for your convenience.
https://github.com/joncampbell123/dosbox-x/raw/refs/heads/master/dosbox-x.reference.conf
https://github.com/joncampbell123/dosbox-x/raw/refs/heads/master/dosbox-x.reference.full.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants