Added a default program option in wine.conf in section [programs] key

Default.
This commit is contained in:
Chad Powell 1998-10-21 16:03:16 +00:00 committed by Alexandre Julliard
parent fb074c44ec
commit edda6875ff
2 changed files with 13 additions and 1 deletions

View File

@ -47,7 +47,7 @@ BOOL32 MAIN_EmulatorInit(void)
int main( int argc, char *argv[] )
{
extern char * DEBUG_argv0;
char startProg[256];
char startProg[256], defProg[256];
int i,loaded;
HINSTANCE32 handle;
@ -87,6 +87,14 @@ int main( int argc, char *argv[] )
loaded=0;
/* Add the Default Program if no program on the command line */
if (!argv[1])
{
PROFILE_GetWineIniString( "programs", "Default", "",
defProg, sizeof(defProg) );
if (defProg[0]) argv[argc++] = defProg;
}
/* Add the Startup Program to the run list */
PROFILE_GetWineIniString( "programs", "Startup", "",
startProg, sizeof(startProg) );

View File

@ -78,3 +78,7 @@ Exclude=WM_SIZE;WM_TIMER;
[Tweak.Layout]
;; WineLook=xxx (supported styles are 'Win31'(default), 'Win95', 'Win98')
;WineLook=Win95
[programs]
Default=
Startup=