diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-02 21:46:25 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2007-06-02 21:46:25 (GMT) |
commit | 79836c7a0f9785867ff3232102d7ac4f0d717838 (patch) | |
tree | 0b6142ba7f72d0456dc91e947e2f591598025f99 /src/hulahop.cpp | |
parent | 6ff99c9cbc7dbd8ef5f544c778d907f846d22ff5 (diff) |
Add $prefix/lib/mozilla/plugins to the plugin path.
Fix dpi calculation.
Diffstat (limited to 'src/hulahop.cpp')
-rw-r--r-- | src/hulahop.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/hulahop.cpp b/src/hulahop.cpp index 32c9f4f..8448a5b 100644 --- a/src/hulahop.cpp +++ b/src/hulahop.cpp @@ -26,11 +26,28 @@ static HulahopDirectoryProvider kDirectoryProvider; +static void +setup_plugin_path() +{ + const char *user_path; + char *new_path; + + user_path = g_getenv ("MOZ_PLUGIN_PATH"); + new_path = g_strconcat(user_path ? user_path : "", + user_path ? ":" : "", + PLUGIN_PATH, + (char *) NULL); + g_setenv ("MOZ_PLUGIN_PATH", new_path, TRUE); + g_free (new_path); +} + gboolean hulahop_startup() { nsresult rv; + setup_plugin_path(); + nsCOMPtr<nsILocalFile> greDir; rv = NS_NewNativeLocalFile(nsCString(MOZILLA_HOME), PR_TRUE, getter_AddRefs(greDir)); |