https://bugs.winehq.org/show_bug.cgi?id=40380
Bug ID: 40380 Summary: Wine should take dosbox's configuration instead of creating a new one Product: Wine Version: unspecified Hardware: Other OS: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: dos Assignee: wine-bugs@winehq.org Reporter: shankao@gmail.com Distribution: ---
The start_dosbox() function at programs/winevdm/winevdm.c should not start with an empty configuration file for dosbox, but take the currently used by the user. In a linux system, this is at ./dosbox/dosbox.conf
With this, DOS programs loaded via wine will respect the options that the user has set up for dosbox, or allow him a way to indicate them.
In my personal case, I like to set up the aspect option by default. It works if I load the program directly with dosbox, but not when done via wine.
https://bugs.winehq.org/show_bug.cgi?id=40380
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com Keywords| |download, integration
https://bugs.winehq.org/show_bug.cgi?id=40380
shankao shankao@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shankao@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40380
--- Comment #1 from shankao shankao@gmail.com --- There can be an easy way to accomplish this by passing the option -userconf when launching dosbox. From dosbox's README:
-userconf Start DOSBox with the users specific configuration file. Can be used together with multiple -conf parameters, but -userconf will always be loaded before them.
This option has been added in dosbox 0.74, released more than 6 years ago.
Patch for it:
diff --git a/programs/winevdm/winevdm.c b/programs/winevdm/winevdm.c index 290ad25..1662008 100644 --- a/programs/winevdm/winevdm.c +++ b/programs/winevdm/winevdm.c @@ -195,7 +195,7 @@ static void start_dosbox( const char *appname, const char *args ) const char *args[4]; char *config_file = wine_get_unix_file_name( config ); args[0] = dosbox; - args[1] = "-conf"; + args[1] = "-userconf -conf"; args[2] = config_file; args[3] = NULL; ret = _spawnvp( _P_WAIT, args[0], args );
https://bugs.winehq.org/show_bug.cgi?id=40380
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |patch
--- Comment #2 from Austin English austinenglish@gmail.com --- Hi shankao,
Thanks for the patch. You should submit it to wine-patches@winehq.org, as patches are not picked up from bugzilla.
https://bugs.winehq.org/show_bug.cgi?id=40380
--- Comment #3 from shankao shankao@gmail.com --- (In reply to Austin English from comment #2)
Hi shankao,
Thanks for the patch. You should submit it to wine-patches@winehq.org, as patches are not picked up from bugzilla.
Ok, I will. Thanks for the hint :)
https://bugs.winehq.org/show_bug.cgi?id=40380
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #4 from super_man@post.com --- The patch needs real author full name.
https://bugs.winehq.org/show_bug.cgi?id=40380
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |6a05abed484cdfbb75956508a58 | |37dbf58424f88 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- Patch commited, thanks for working on this.
http://source.winehq.org/git/wine.git/?a=commit;h=6a05abed484cdfbb75956508a5...
https://bugs.winehq.org/show_bug.cgi?id=40380
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.9.12.
https://bugs.winehq.org/show_bug.cgi?id=40380
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.x CC| |mstefani@redhat.com
https://bugs.winehq.org/show_bug.cgi?id=40380
Michael Stefaniuc mstefani@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.8.x |---
--- Comment #7 from Michael Stefaniuc mstefani@redhat.com --- Removing 1.8.x milestone from bugs included in 1.8.4.