[Spice-commits] SpiceXPI/src
Marc-André Lureau
elmarco at kemper.freedesktop.org
Tue Mar 13 11:03:43 PDT 2012
SpiceXPI/src/plugin/plugin.cpp | 5 -----
SpiceXPI/src/plugin/plugin.h | 1 -
2 files changed, 6 deletions(-)
New commits:
commit 9d2ccec6bf9bf0f6e4df8ccc3e13679276718e60
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Fri Mar 9 19:19:40 2012 +0100
~/.spicec is no longer needed
Don't attempt to create an unused directory
See also: https://bugzilla.redhat.com/show_bug.cgi?id=801871
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;
};
More information about the Spice-commits
mailing list