mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
fix ffmpeg path
This commit is contained in:
parent
5e00cff459
commit
5de0e3c020
|
@ -397,7 +397,7 @@ private void btnTest_Click(object sender, EventArgs e)
|
|||
using (Process process = new Process())
|
||||
{
|
||||
ProcessStartInfo psi = new ProcessStartInfo("cmd.exe");
|
||||
psi.Arguments = "/k ffmpeg " + Options.GetFFmpegCommands();
|
||||
psi.Arguments = $"/k {Path.GetFileName(Options.FFmpeg.FFmpegPath)} {Options.GetFFmpegCommands()}";
|
||||
psi.WorkingDirectory = Path.GetDirectoryName(Options.FFmpeg.FFmpegPath);
|
||||
|
||||
process.StartInfo = psi;
|
||||
|
@ -413,7 +413,7 @@ private void btnTest_Click(object sender, EventArgs e)
|
|||
|
||||
private void btnCopyPreview_Click(object sender, EventArgs e)
|
||||
{
|
||||
ClipboardHelpers.CopyText("ffmpeg " + Options.GetFFmpegCommands());
|
||||
ClipboardHelpers.CopyText($"{Path.GetFileName(Options.FFmpeg.FFmpegPath)} {Options.GetFFmpegCommands()}");
|
||||
}
|
||||
|
||||
private void cbCustomCommands_CheckedChanged(object sender, EventArgs e)
|
||||
|
|
Loading…
Reference in a new issue