From e0a2e2a0b6661966aceea6e3b665d776b36b407e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 14 Mar 2018 21:13:47 +0000 Subject: [PATCH] command: Only log working dir when it's explicitly set --- SparkleShare/Linux/Controller.cs | 4 ++-- Sparkles/Command.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SparkleShare/Linux/Controller.cs b/SparkleShare/Linux/Controller.cs index 9f92491c..aa9447b7 100644 --- a/SparkleShare/Linux/Controller.cs +++ b/SparkleShare/Linux/Controller.cs @@ -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 (); } diff --git a/Sparkles/Command.cs b/Sparkles/Command.cs index 3a245922..34056cbd 100644 --- a/Sparkles/Command.cs +++ b/Sparkles/Command.cs @@ -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)