Skip to content

Commit

Permalink
Fix communication with JabFox (#5970)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Feb 20, 2020
1 parent 5fa1dcf commit 1bb814a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions buildres/windows/JabRefHost.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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 {
Expand Down

0 comments on commit 1bb814a

Please sign in to comment.