summaryrefslogtreecommitdiff
path: root/SpiceXPI
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2012-03-09 19:19:40 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2012-03-09 19:19:43 +0100
commit9d2ccec6bf9bf0f6e4df8ccc3e13679276718e60 (patch)
tree8756322f1d25ddbbb97aa67c5cf384e63b42d8ec /SpiceXPI
parent3dba6b2035e1082472062e575104d9fe2ea86d78 (diff)
~/.spicec is no longer needed
Don't attempt to create an unused directory See also: https://bugzilla.redhat.com/show_bug.cgi?id=801871
Diffstat (limited to 'SpiceXPI')
-rw-r--r--SpiceXPI/src/plugin/plugin.cpp5
-rw-r--r--SpiceXPI/src/plugin/plugin.h1
2 files changed, 0 insertions, 6 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
index 39f2e81..4dc1121 100644
--- a/SpiceXPI/src/plugin/plugin.cpp
+++ b/SpiceXPI/src/plugin/plugin.cpp
@@ -189,11 +189,6 @@ nsPluginInstance::nsPluginInstance(NPP aInstance):
m_initialized(PR_FALSE),
m_scriptable_peer(NULL)
{
- // create .spicec directory in $HOME
- m_home_dir = getenv("HOME");
- m_home_dir += "/.spicec";
- mkdir(m_home_dir.c_str(), S_IRWXU);
-
// create temporary directory in /tmp
char tmp_dir[] = "/tmp/spicec-XXXXXX";
m_tmp_dir = mkdtemp(tmp_dir);
diff --git a/SpiceXPI/src/plugin/plugin.h b/SpiceXPI/src/plugin/plugin.h
index 8481120..42e2a2d 100644
--- a/SpiceXPI/src/plugin/plugin.h
+++ b/SpiceXPI/src/plugin/plugin.h
@@ -204,7 +204,6 @@ private:
std::map<std::string, std::string> m_language;
NPObject *m_scriptable_peer;
- std::string m_home_dir;
std::string m_tmp_dir;
std::string m_trust_store_file;
};