diff options
author | Jiri Vanek <[email protected]> | 2013-11-29 12:14:43 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-11-29 12:14:43 +0100 |
commit | 9fdd4c8df8db77a810563549debbff9f8a98de9d (patch) | |
tree | cf564bbdeb564f8bfa0006860ecc07b6562c1207 /plugin/icedteanp/IcedTeaNPPlugin.cc | |
parent | b734ac62fbdbdaa855983ebea07f7b92d0a02c33 (diff) |
Pipes moved into XDG_RUNTIME_DIR
Diffstat (limited to 'plugin/icedteanp/IcedTeaNPPlugin.cc')
-rw-r--r-- | plugin/icedteanp/IcedTeaNPPlugin.cc | 18 |
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"); |