lin controller: Use custom-icon-name file metadata for the ~/SparkleShare folder, this is a new property in gnome3 that supports scaling icons
This commit is contained in:
parent
6e6e2bbf9a
commit
b52af47d5a
|
@ -144,8 +144,13 @@ namespace SparkleShare {
|
|||
process.StartInfo.RedirectStandardOutput = true;
|
||||
process.StartInfo.UseShellExecute = false;
|
||||
process.StartInfo.FileName = "gvfs-set-attribute";
|
||||
process.StartInfo.Arguments = SparklePaths.SparklePath + " metadata::custom-icon " +
|
||||
"file://" + icon_file_path;
|
||||
|
||||
// Clear the custom (legacy) icon path
|
||||
process.StartInfo.Arguments = SparklePaths.SparklePath + " metadata::custom-icon ''"; "";
|
||||
process.Start ();
|
||||
|
||||
// Give the SparkleShare folder an icon name, so that it scales
|
||||
process.StartInfo.Arguments = SparklePaths.SparklePath + " metadata::custom-icon-name 'folder-sparkleshare'"; "";
|
||||
process.Start ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue