diff --git a/Plugins/scripting/scripting/PluginImpl.cs b/Plugins/scripting/scripting/PluginImpl.cs index 9e3d3954..c1f9ae88 100644 --- a/Plugins/scripting/scripting/PluginImpl.cs +++ b/Plugins/scripting/scripting/PluginImpl.cs @@ -277,7 +277,7 @@ internal bool Run(int sessionId, string cmd, UserInformation userInfo, bool pwd, } expand_cmd = expand_cmd.Trim(); expand_cmd_out = expand_cmd_out.Trim(); - m_logger.InfoFormat("execute {0} {1} {2}", pwd, sys, expand_cmd_out); + m_logger.InfoFormat("execute {0}", expand_cmd_out); if (sys) { diff --git a/pGina/src/Abstractions/WindowsApi/pInvokes.cs b/pGina/src/Abstractions/WindowsApi/pInvokes.cs index af83154b..995d5d6e 100644 --- a/pGina/src/Abstractions/WindowsApi/pInvokes.cs +++ b/pGina/src/Abstractions/WindowsApi/pInvokes.cs @@ -1435,8 +1435,8 @@ public static System.Diagnostics.Process StartProcessWithToken(IntPtr token, str // Now we can finally get into the business at hand and setup our process info SafeNativeMethods.STARTUPINFO startInfo = new SafeNativeMethods.STARTUPINFO(); startInfo.cb = Marshal.SizeOf(startInfo); - startInfo.wShowWindow = 0; - startInfo.lpDesktop = "Winsta0\\Default"; // TBD: Support other desktops? + //startInfo.wShowWindow = 0; + //startInfo.lpDesktop = "Winsta0\\Default"; // TBD: Support other desktops? SafeNativeMethods.PROCESS_INFORMATION procInfo = new SafeNativeMethods.PROCESS_INFORMATION(); if (!SafeNativeMethods.CreateProcessAsUser(token, null, cmdLine, ref defSec, ref defSec, false, SafeNativeMethods.CreationFlags.CREATE_UNICODE_ENVIRONMENT, environmentBlock, null, ref startInfo, out procInfo))