linux: Use 'gio set' instead of deprecated gvfs-set-attribute

This commit is contained in:
Hylke Bons 2018-07-09 10:58:22 +02:00
parent c42a820909
commit 14759b5fa9
5 changed files with 6 additions and 6 deletions

View file

@ -47,13 +47,13 @@ namespace SparkleShare {
public override void SetFolderIcon () public override void SetFolderIcon ()
{ {
var gvfs_set_attribute = new Command ("gvfs-set-attribute", "\"" + Configuration.DefaultConfiguration.FoldersPath + "\" " + var gio_set = new Command ("gio", "set \"" + Configuration.DefaultConfiguration.FoldersPath + "\" " +
"metadata::custom-icon-name org.sparkleshare.SparkleShare"); "metadata::custom-icon-name org.sparkleshare.SparkleShare");
string XDG_DATA_HOME = Path.Combine (Config.HomePath, ".local", "share"); string XDG_DATA_HOME = Path.Combine (Config.HomePath, ".local", "share");
gvfs_set_attribute.StartInfo.EnvironmentVariables ["XDG_DATA_HOME"] = XDG_DATA_HOME; gio_set.StartInfo.EnvironmentVariables ["XDG_DATA_HOME"] = XDG_DATA_HOME;
gvfs_set_attribute.StartAndWaitForExit (); gio_set.StartAndWaitForExit ();
} }

View file

@ -1,6 +1,6 @@
sparkles_git_src = ['GitCommand.cs', sparkles_git_src = ['Git.Command.cs',
'GitFetcher.cs', 'Git.Fetcher.cs',
'GitRepository.cs'] 'Git.Repository.cs']
sparkles_git = library('Sparkles.Git', sparkles_git = library('Sparkles.Git',
link_with: sparkles, link_with: sparkles,