aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2010-05-19 16:20:36 +0800
committerFridrich Štrba <fridrich.strba@bluewin.ch>2010-05-19 16:26:08 +0800
commit38711248e319902e7396e41e1c64c732b1645bec (patch)
treea89e197ac49b0ec5396d29b1de2501c722ab0113
parentb995d99498160db3006cb4288b5048f3396d1d88 (diff)
downloadgsoc2013-evolution-38711248e319902e7396e41e1c64c732b1645bec.tar.gz
gsoc2013-evolution-38711248e319902e7396e41e1c64c732b1645bec.tar.zst
gsoc2013-evolution-38711248e319902e7396e41e1c64c732b1645bec.zip
[win32] Try to get the default application registration right
-rw-r--r--e-util/e-win32-defaults.c3
-rw-r--r--shell/main.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/e-util/e-win32-defaults.c b/e-util/e-win32-defaults.c
index be494bf8a3..8fb2bc3cb9 100644
--- a/e-util/e-win32-defaults.c
+++ b/e-util/e-win32-defaults.c
@@ -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, &reg_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
diff --git a/shell/main.c b/shell/main.c
index 0ee9478858..41ca79eac8 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -327,11 +327,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,