Launchpad has imported 2 comments from the remote bug at
https://bugs.winehq.org/show_bug.cgi?id=40380.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2016-03-29T17:05:55+00:00 shankao wrote:

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.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/wine1.6/+bug/1587956/comments/0

------------------------------------------------------------------------
On 2016-06-01T15:34:00+00:00 shankao wrote:

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 );

Reply at:
https://bugs.launchpad.net/ubuntu/+source/wine1.6/+bug/1587956/comments/1


** Changed in: wine
       Status: Unknown => New

** Changed in: wine
   Importance: Unknown => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1587956

Title:
  Wine should use dosbox's user config instead of creating a new one

To manage notifications about this bug go to:
https://bugs.launchpad.net/wine/+bug/1587956/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to