[win32] Try to get the default application registration right
This commit is contained in:
@ -146,6 +146,7 @@ _e_win32_register_mailer_impl (WINBOOL system)
|
||||
if ((returnValue = RegCreateKeyExA (reg_key, "shell\\open\\command", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, ®_subkey, &dwDisposition)))
|
||||
goto cleanup;
|
||||
|
||||
openCommand = g_strconcat("\"", evolutionBinary, "\" --component=mail", NULL);
|
||||
if ((returnValue = RegSetValueExA (reg_subkey, NULL, 0, REG_SZ, (const BYTE *)openCommand, strlen (openCommand) + 1)))
|
||||
goto cleanup;
|
||||
|
||||
@ -201,7 +202,7 @@ cleanup:
|
||||
g_free (openCommand);
|
||||
g_free (reinstallCommand);
|
||||
g_free (showIconsCommand);
|
||||
g_free (showIconsCommand);
|
||||
g_free (hideIconsCommand);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@ -306,11 +306,11 @@ setup_segv_redirect (void)
|
||||
|
||||
static GOptionEntry entries[] = {
|
||||
#ifdef G_OS_WIN32
|
||||
{ "--reinstall", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &reinstall,
|
||||
{ "reinstall", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &reinstall,
|
||||
NULL, NULL },
|
||||
{ "--show-icons", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &show_icons,
|
||||
{ "show-icons", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &show_icons,
|
||||
NULL, NULL },
|
||||
{ "--hide-icons", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &hide_icons,
|
||||
{ "hide-icons", '\0', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &hide_icons,
|
||||
NULL, NULL },
|
||||
#endif /* G_OS_WIN32 */
|
||||
{ "component", 'c', 0, G_OPTION_ARG_STRING, &requested_view,
|
||||
|
||||
Reference in New Issue
Block a user