From 40168aab1e33815859958ba3541cf953a20e46b6 Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 20 Oct 2005 06:15:41 +0000 Subject: added '--configdir' option which specifies config directory. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@667 ee746299-78ed-0310-b773-934348b2243d --- src/manual.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/manual.c') diff --git a/src/manual.c b/src/manual.c index 8afc4bdb..44bc54e0 100644 --- a/src/manual.c +++ b/src/manual.c @@ -60,7 +60,14 @@ void manual_open(ManualLang lang) lang_str = get_lang_str(lang); if (!lang_str) return; - file_uri = g_strconcat("file://", MANUALDIR, + file_uri = g_strconcat("file://", +#ifdef G_OS_WIN32 + get_startup_dir(), + G_DIR_SEPARATOR_S "doc" G_DIR_SEPARATOR_S + "manual", +#else + MANUALDIR, +#endif G_DIR_SEPARATOR_S, lang_str, G_DIR_SEPARATOR_S, MANUAL_HTML_INDEX, NULL); debug_print("Opening manual: %s\n", file_uri); @@ -76,7 +83,13 @@ void faq_open(ManualLang lang) lang_str = get_lang_str(lang); if (!lang_str) return; - file_uri = g_strconcat("file://", FAQDIR, + file_uri = g_strconcat("file://", +#ifdef G_OS_WIN32 + get_startup_dir(), + G_DIR_SEPARATOR_S "doc" G_DIR_SEPARATOR_S "faq", +#else + FAQDIR, +#endif G_DIR_SEPARATOR_S, lang_str, G_DIR_SEPARATOR_S, FAQ_HTML_INDEX, NULL); debug_print("Opening FAQ: %s\n", file_uri); -- cgit v1.2.3