command: Only log working dir when it's explicitly set

This commit is contained in:
Hylke Bons 2018-03-14 21:13:47 +00:00
parent 1369ac07b4
commit e0a2e2a0b6
2 changed files with 3 additions and 3 deletions

View file

@ -50,8 +50,8 @@ namespace SparkleShare {
var gvfs_set_attribute = new Command ("gvfs-set-attribute", "\"" + Configuration.DefaultConfiguration.FoldersPath + "\" " +
"metadata::custom-icon-name org.sparkleshare.SparkleShare");
gvfs_set_attribute.StartInfo.EnvironmentVariables ["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;
gvfs_set_attribute.StartAndWaitForExit ();
}

View file

@ -52,7 +52,7 @@ namespace Sparkles {
{
string folder = "";
if (!string.IsNullOrEmpty (StartInfo.WorkingDirectory))
if (StartInfo.WorkingDirectory != Path.GetTempPath ())
folder = Path.GetFileName (StartInfo.WorkingDirectory) + " | ";
if (write_output)