diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-20 06:15:41 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-10-20 06:15:41 +0000 |
commit | 40168aab1e33815859958ba3541cf953a20e46b6 (patch) | |
tree | dd7e7ccd5941505479e172637bdf6ee0d336bfbb /src/manual.c | |
parent | 4b921d38b48195db59f0224e994f8372adb5873f (diff) |
added '--configdir' option which specifies config directory.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@667 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/manual.c')
-rw-r--r-- | src/manual.c | 17 |
1 files changed, 15 insertions, 2 deletions
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); |