From 1bb814ab3329aea8c586a576280b50d51971be1c Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 20 Feb 2020 23:16:51 +0100 Subject: [PATCH] Fix communication with JabFox (#5970) --- buildres/windows/JabRefHost.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/buildres/windows/JabRefHost.ps1 b/buildres/windows/JabRefHost.ps1 index f31df86f74e..9c876805305 100644 --- a/buildres/windows/JabRefHost.ps1 +++ b/buildres/windows/JabRefHost.ps1 @@ -11,7 +11,7 @@ function Respond($response) { } } -$jabRefExe = [System.IO.Path]::Combine($PSScriptRoot, "JabRef.exe") +$jabRefExe = [System.IO.Path]::Combine($PSScriptRoot, "runtime\\bin\\JabRef.bat") try { $reader = New-Object System.IO.BinaryReader([System.Console]::OpenStandardInput()) @@ -37,9 +37,10 @@ try { #$wshell = New-Object -ComObject Wscript.Shell #$wshell.Popup($message.Text,0,"JabRef", 0x0 + 0x30) - $messageText = $message.Text - $output = & $jabRefExe -importBibtex "$messageText" 2>&1 - #$output = & echoargs -importBibtex $messageText 2>&1 + $messageText = $message.Text.replace("`n"," ").replace("`r"," ") + $output = & $jabRefExe -importBibtex "$messageText" *>&1 + #$output = "$messageText" + #$wshell = New-Object -ComObject Wscript.Shell #$wshell.Popup($output,0,"JabRef", 0x0 + 0x30) return Respond @{message="ok";output="$output"} } finally {