Skip to content

Commit 2d67d7c

Browse files
authored
add tmp path for Linux
1 parent a5537b5 commit 2d67d7c

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

extension/OOoLilyPond/LilyPond.xba

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,20 @@ Function CallLilyPond() As Boolean
6262
End If
6363
If sFormat="png" Then
6464
If bTransparentBackground Then
65-
sCommand = sCommand & " -dno-delete-intermediate-files -dpixmap-format=pngalpha --png " & sBackendOpt & " -dresolution=" & iGraphicDPI & " " & constOLyFileName & ".ly >" & constOLyFileName & ".out 2>&1; "
65+
sCommand = sCommand & " -dno-delete-intermediate-files -dpixmap-format=pngalpha --png " & sBackendOpt & " -dresolution=" _
66+
& iGraphicDPI & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & ".ly" & Chr (34) _
67+
& " >" & constOLyFileName & ".out 2>&1; "
6668
Else
67-
sCommand = sCommand & " -dno-delete-intermediate-files --png " & sBackendOpt & " -dresolution=" & iGraphicDPI & " " & constOLyFileName & ".ly >" & constOLyFileName & ".out 2>&1; "
69+
sCommand = sCommand & " -dno-delete-intermediate-files --png " & sBackendOpt & " -dresolution=" _
70+
& iGraphicDPI & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & ".ly" & Chr (34) _
71+
& " >" & constOLyFileName & ".out 2>&1; "
6872
End If
6973
ElseIf sFormat="eps" Then
70-
sCommand = sCommand & " " & sBackendOpt & " -f eps " & constOLyFileName & ".ly >" & constOLyFileName & ".out 2>&1; "
74+
sCommand = sCommand & " " & sBackendOpt & " -f eps " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & ".ly" & Chr (34) _
75+
& " >" & constOLyFileName & ".out 2>&1; "
7176
ElseIf sFormat="svg" Then
72-
sCommand = sCommand & " " & sBackendOpt & " " & constOLyFileName & ".ly >" & constOLyFileName & ".out 2>&1; "
73-
' sCommand = sCommand & " " & sBackendOpt & " " & Chr(34) & ConvertFromURL(sTmpPath) & "/" & constOLyFileName & ".ly" & Chr (34) _
74-
' & " >" & constOLyFileName & ".out 2>&1; "
77+
sCommand = sCommand & " " & sBackendOpt & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & ".ly" & Chr (34) _
78+
& " >" & constOLyFileName & ".out 2>&1; "
7579
End If
7680
sCommand=sCommand & "if [ $? -ge 126 ]; then touch LilyPond-cannot_execute; fi" ' not found -> 127, denied ->126
7781
BashCommand(sCommand)

0 commit comments

Comments
 (0)