And here is what such a patch would look like:
diff --git a/base/files/file_util_posix.cc b/base/files/file_util_posix.cc index 42de931..f9dec07 100644 --- a/base/files/file_util_posix.cc +++ b/base/files/file_util_posix.cc @@ -139,6 +139,10 @@ std::string TempFileName() { #if defined(GOOGLE_CHROME_BUILD) return std::string(".com.google.Chrome.XXXXXX"); #else + const char* tmp = getenv("SNAP_NAME"); + if (tmp) { + return std::string("snap.").append(tmp).append(".XXXXXX"); + } return std::string(".org.chromium.Chromium.XXXXXX"); #endif }
And here is what such a patch would look like:
diff --git a/base/ files/file_ util_posix. cc b/base/ files/file_ util_posix. cc files/file_ util_posix. cc files/file_ util_posix. cc GOOGLE_ CHROME_ BUILD) ".com.google. Chrome. XXXXXX" ); "SNAP_NAME" ); "snap." ).append( tmp).append( ".XXXXXX" ); ".org.chromium. Chromium. XXXXXX" );
index 42de931..f9dec07 100644
--- a/base/
+++ b/base/
@@ -139,6 +139,10 @@ std::string TempFileName() {
#if defined(
return std::string(
#else
+ const char* tmp = getenv(
+ if (tmp) {
+ return std::string(
+ }
return std::string(
#endif
}