add emblem support. but it doesn't work...
This commit is contained in:
parent
b93ffb0d51
commit
dd2a1d4621
1
Makefile
1
Makefile
|
@ -22,6 +22,7 @@ uninstall:
|
|||
rm /usr/share/icons/hicolor/*x*/places/folder-sparkleshare.png
|
||||
rm /usr/share/icons/hicolor/*x*/status/document-*ed.png
|
||||
rm /usr/share/icons/hicolor/*x*/status/avatar-default.png
|
||||
rm /usr/share/icons/hicolor/*x*/emblems/emblem-sync*.png
|
||||
rm ~/.config/autostart/sparkleshare.desktop
|
||||
|
||||
clean:
|
||||
|
|
|
@ -63,10 +63,10 @@ namespace SparkleShare {
|
|||
Size + "x" + Size,
|
||||
"status",
|
||||
"avatar-default.png");
|
||||
if (File.Exists (FallbackFileName))
|
||||
return FallbackFileName;
|
||||
if (File.Exists (AvatarPath + Email))
|
||||
return AvatarPath + Email;
|
||||
else
|
||||
return "";
|
||||
return FallbackFileName;
|
||||
|
||||
}
|
||||
|
||||
|
|
0
SparkleShare/SparklePlatform.cs
Normal file
0
SparkleShare/SparklePlatform.cs
Normal file
|
@ -105,7 +105,6 @@ namespace SparkleShare {
|
|||
FetchTimer.Interval = 20000;
|
||||
FetchTimer.Elapsed += delegate {
|
||||
Fetch ();
|
||||
|
||||
};
|
||||
|
||||
FetchTimer.Start();
|
||||
|
|
|
@ -32,14 +32,15 @@
|
|||
<Reference Include="System" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="SparkleShare.cs" />
|
||||
<Compile Include="SparkleRepo.cs" />
|
||||
<Compile Include="SparkleUI.cs" />
|
||||
<Compile Include="SparkleStatusIcon.cs" />
|
||||
<Compile Include="SparkleWindow.cs" />
|
||||
<Compile Include="SparkleBubble.cs" />
|
||||
<Compile Include="SparkleSpinner.cs" />
|
||||
<Compile Include="SparklePaths.cs" />
|
||||
<Compile Include="SparkleHelpers.cs" />
|
||||
<Compile Include="SparklePaths.cs" />
|
||||
<Compile Include="SparklePlatform.cs" />
|
||||
<Compile Include="SparkleRepo.cs" />
|
||||
<Compile Include="SparkleShare.cs" />
|
||||
<Compile Include="SparkleSpinner.cs" />
|
||||
<Compile Include="SparkleStatusIcon.cs" />
|
||||
<Compile Include="SparkleUI.cs" />
|
||||
<Compile Include="SparkleWindow.cs" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -44,6 +44,7 @@ namespace SparkleShare {
|
|||
Directory.CreateDirectory (SparklePath);
|
||||
Console.WriteLine ("[Config] Created '" + SparklePath + "'");
|
||||
|
||||
// Linux/GNOME specific
|
||||
Process.StartInfo.FileName = "gvfs-set-attribute";
|
||||
Process.StartInfo.Arguments = SparklePath +
|
||||
" metadata::custom-icon " +
|
||||
|
@ -51,7 +52,7 @@ namespace SparkleShare {
|
|||
"48x48/places/" +
|
||||
"folder-sparkleshare.png";
|
||||
Process.Start();
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Create place to store configuration user's home folder
|
||||
|
@ -76,6 +77,15 @@ namespace SparkleShare {
|
|||
foreach (string Folder in Repos) {
|
||||
Repositories [i] = new SparkleRepo (Folder);
|
||||
i++;
|
||||
|
||||
// Linux/GNOME only: attach emblems
|
||||
Process.StartInfo.FileName = "gvfs-set-attribute";
|
||||
Console.WriteLine (Folder);
|
||||
Process.StartInfo.Arguments = " file://" + Folder +
|
||||
" metadata::emblems " +
|
||||
"[synced]";
|
||||
Console.WriteLine (Process.StartInfo.Arguments);
|
||||
Process.Start();
|
||||
}
|
||||
|
||||
// Don't create the window and status
|
||||
|
|
Loading…
Reference in a new issue