windows: Use less common name for tmp pixmaps folder. Closes #1499

This commit is contained in:
Hylke Bons 2014-04-26 11:51:06 +01:00
parent 5f94cdc539
commit cc3d802900

View file

@ -28,6 +28,8 @@ using System.Windows.Media.Imaging;
using Microsoft.Win32;
using Shapes = System.Windows.Shapes;
using SparkleLib;
namespace SparkleShare {
public class SparkleEventLog : Window {
@ -273,7 +275,7 @@ namespace SparkleShare {
public void UpdateContent (string html)
{
string pixmaps_path = Path.Combine (SparkleLib.SparkleConfig.DefaultConfig.TmpPath, "Pixmaps");
string pixmaps_path = Path.Combine (SparkleLib.SparkleConfig.DefaultConfig.TmpPath, "Pixmaps".SHA1 ());
pixmaps_path = pixmaps_path.Replace ("\\", "/");
html = html.Replace ("<a href=", "<a class='windows' href=");
@ -308,7 +310,7 @@ namespace SparkleShare {
private void WriteOutImages ()
{
string tmp_path = SparkleLib.SparkleConfig.DefaultConfig.TmpPath;
string pixmaps_path = Path.Combine (tmp_path, "Pixmaps");
string pixmaps_path = Path.Combine (tmp_path, "Pixmaps".SHA1 ());
if (!Directory.Exists (pixmaps_path)) {
Directory.CreateDirectory (pixmaps_path);