windows: Use less common name for tmp pixmaps folder. Closes #1499
This commit is contained in:
parent
5f94cdc539
commit
cc3d802900
|
@ -28,6 +28,8 @@ using System.Windows.Media.Imaging;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using Shapes = System.Windows.Shapes;
|
using Shapes = System.Windows.Shapes;
|
||||||
|
|
||||||
|
using SparkleLib;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
public class SparkleEventLog : Window {
|
public class SparkleEventLog : Window {
|
||||||
|
@ -273,7 +275,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public void UpdateContent (string html)
|
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 ("\\", "/");
|
pixmaps_path = pixmaps_path.Replace ("\\", "/");
|
||||||
|
|
||||||
html = html.Replace ("<a href=", "<a class='windows' href=");
|
html = html.Replace ("<a href=", "<a class='windows' href=");
|
||||||
|
@ -308,7 +310,7 @@ namespace SparkleShare {
|
||||||
private void WriteOutImages ()
|
private void WriteOutImages ()
|
||||||
{
|
{
|
||||||
string tmp_path = SparkleLib.SparkleConfig.DefaultConfig.TmpPath;
|
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)) {
|
if (!Directory.Exists (pixmaps_path)) {
|
||||||
Directory.CreateDirectory (pixmaps_path);
|
Directory.CreateDirectory (pixmaps_path);
|
||||||
|
|
Loading…
Reference in a new issue