aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-12-19 08:20:41 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2013-12-19 08:20:41 +0000
commitd905904d5d862da3805447f7c1d8b8900e6e0525 (patch)
tree19f9b68747419e069e187408c38e86c822896c6d /src
parent7646fa9d26b362581e7c140ea5ccb87f612c9066 (diff)
added files and modified file paths for OS X.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3317 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
-rw-r--r--src/manual.c14
2 files changed, 24 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 985fd447..cf309d41 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1428,6 +1428,16 @@ static void plugin_init(void)
NULL);
syl_plugin_load_all(path);
g_free(path);
+#elif defined(__APPLE__)
+ path = g_strconcat(get_startup_dir(), G_DIR_SEPARATOR_S,
+ "Contents" G_DIR_SEPARATOR_S
+ "Resources" G_DIR_SEPARATOR_S
+ "lib" G_DIR_SEPARATOR_S
+ "sylpheed" G_DIR_SEPARATOR_S
+ PLUGIN_DIR,
+ NULL);
+ syl_plugin_load_all(path);
+ g_free(path);
#else
syl_plugin_load_all(PLUGINDIR);
#endif
diff --git a/src/manual.c b/src/manual.c
index 44bc54e0..9383bd9b 100644
--- a/src/manual.c
+++ b/src/manual.c
@@ -65,6 +65,13 @@ void manual_open(ManualLang lang)
get_startup_dir(),
G_DIR_SEPARATOR_S "doc" G_DIR_SEPARATOR_S
"manual",
+#elif defined(__APPLE__)
+ get_startup_dir(),
+ G_DIR_SEPARATOR_S "Contents" G_DIR_SEPARATOR_S
+ "Resources" G_DIR_SEPARATOR_S
+ "share" G_DIR_SEPARATOR_S
+ "sylpheed" G_DIR_SEPARATOR_S
+ "manual",
#else
MANUALDIR,
#endif
@@ -87,6 +94,13 @@ void faq_open(ManualLang lang)
#ifdef G_OS_WIN32
get_startup_dir(),
G_DIR_SEPARATOR_S "doc" G_DIR_SEPARATOR_S "faq",
+#elif defined(__APPLE__)
+ get_startup_dir(),
+ G_DIR_SEPARATOR_S "Contents" G_DIR_SEPARATOR_S
+ "Resources" G_DIR_SEPARATOR_S
+ "share" G_DIR_SEPARATOR_S
+ "sylpheed" G_DIR_SEPARATOR_S
+ "faq",
#else
FAQDIR,
#endif