windows: fix setting of custom folder icon
This commit is contained in:
parent
01994132a7
commit
e0fd85b5dd
|
@ -140,10 +140,11 @@ namespace SparkleShare {
|
||||||
|
|
||||||
if (!File.Exists (icon_file_path)) {
|
if (!File.Exists (icon_file_path)) {
|
||||||
string ini_file_path = Path.Combine (FoldersPath, "desktop.ini");
|
string ini_file_path = Path.Combine (FoldersPath, "desktop.ini");
|
||||||
|
string n = Environment.NewLine;
|
||||||
string ini_file = "[.ShellClassInfo]" +
|
|
||||||
"IconFile=" + icon_file_path +
|
string ini_file = "[.ShellClassInfo]" + n +
|
||||||
"IconIndex=0" +
|
"IconFile=" + icon_file_path + n +
|
||||||
|
"IconIndex=0" + n +
|
||||||
"InfoTip=SparkleShare";
|
"InfoTip=SparkleShare";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue