Fixing windows launcher executable not installed.
This commit is contained in:
parent
c9088d8c45
commit
9a5b344c18
@ -49,6 +49,7 @@ endforeach
|
|||||||
if is_windows
|
if is_windows
|
||||||
executable('recuento_launcher_windows',
|
executable('recuento_launcher_windows',
|
||||||
launcher_sources,
|
launcher_sources,
|
||||||
|
install: true,
|
||||||
win_subsystem: 'windows',
|
win_subsystem: 'windows',
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
|
@ -9,7 +9,10 @@ WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR pCmdLine, int nCmdShow)
|
|||||||
char* argument_list[] = { _fullpath(NULL, "recuento\\\\recuento.exe", 3000), NULL };
|
char* argument_list[] = { _fullpath(NULL, "recuento\\\\recuento.exe", 3000), NULL };
|
||||||
_putenv_s("DATADIR_RECUENTO", "recuento\\\\resources/");
|
_putenv_s("DATADIR_RECUENTO", "recuento\\\\resources/");
|
||||||
_putenv_s("GSETTINGS_SCHEMA_DIR", "share\\\\glib-2.0\\\\schemas");
|
_putenv_s("GSETTINGS_SCHEMA_DIR", "share\\\\glib-2.0\\\\schemas");
|
||||||
int return_value = execvp(argument_list[0], argument_list);
|
int return_value = execvp(argument_list[0], argument_list);
|
||||||
if (return_value == -1)
|
if (return_value == -1) {
|
||||||
printf ("%s\n", strerror(errno));
|
printf ("%s\n", strerror(errno));
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user