Commit edda6875 authored by Chad Powell's avatar Chad Powell Committed by Alexandre Julliard

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

Default.
parent fb074c44
......@@ -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) );
......
......@@ -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=
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment