aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/IcedTeaNPPlugin.cc
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-11-29 12:14:43 +0100
committerJiri Vanek <[email protected]>2013-11-29 12:14:43 +0100
commit9fdd4c8df8db77a810563549debbff9f8a98de9d (patch)
treecf564bbdeb564f8bfa0006860ecc07b6562c1207 /plugin/icedteanp/IcedTeaNPPlugin.cc
parentb734ac62fbdbdaa855983ebea07f7b92d0a02c33 (diff)
Pipes moved into XDG_RUNTIME_DIR
Diffstat (limited to 'plugin/icedteanp/IcedTeaNPPlugin.cc')
-rw-r--r--plugin/icedteanp/IcedTeaNPPlugin.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/plugin/icedteanp/IcedTeaNPPlugin.cc b/plugin/icedteanp/IcedTeaNPPlugin.cc
index 30ab716..9a0d0c4 100644
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc
@@ -1787,24 +1787,8 @@ initialize_plugin_table(NPPluginFuncs* pluginTable)
NPError
initialize_data_directory()
{
- const char* tmpdir_env = getenv("TMPDIR");
- if (tmpdir_env != NULL && g_file_test (tmpdir_env,
- (GFileTest) (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)))
- {
- data_directory = tmpdir_env;
- }
- else if (g_file_test (P_tmpdir,
- (GFileTest) (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)))
- {
- data_directory = P_tmpdir;
- }
- else
- {
- // If TMPDIR and P_tmpdir do not exist, try /tmp directly
- data_directory = "/tmp";
- }
- data_directory += "/icedteaplugin-";
+ data_directory = IcedTeaPluginUtilities::getRuntimePath() + "/icedteaplugin-";
if (getenv("USER") != NULL)
data_directory += getenv("USER");