<div dir="ltr">Resending because I replied privately by accident...<div><br></div><div>Thanks, your suggestions solve my problem!</div><div><br></div><div>Best regards,</div><div>Stefaan.</div><div><br><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 26, 2015 at 12:13 AM, Tito Latini <span dir="ltr">&lt;<a href="mailto:tito.01beta@gmail.com" target="_blank">tito.01beta@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 25, 2015 at 11:04:27AM +0200, Stefaan Himpe wrote:<br>
&gt; Hello list,<br>
&gt;<br>
&gt; I&#39;m hitting an annoying problem while experimenting with grace<br>
&gt; freshly compiled from cm-3.9.0 using premake4.4beta5<br>
&gt;<br>
&gt; Whenever I try to save a file from grace, it bails out with an error.<br>
&gt; (link to screenshot further in the mail).<br>
&gt;<br>
&gt; Since grace is the only program on my computer that behaves like<br>
&gt; this I assume it&#39;s a problem with grace somehow (despite the error pointing<br>
&gt; to something samba? Not sure why samba would be even used as I do not<br>
&gt; have anything related to microsoft windows on this computer.)<br>
&gt;<br>
&gt; I&#39;m running grace under kde on arch linux, kernel:<br>
&gt;<br>
&gt;  Linux name 4.0.4-2-ARCH #1 SMP PREEMPT Fri May 22 03:05:23 UTC 2015 x86_64<br>
&gt; GNU/Linux<br>
&gt;<br>
&gt; A screenshot of the error can be found here:<br>
&gt;<br>
&gt; <a href="http://i.imgur.com/ApchGhm.png" target="_blank">http://i.imgur.com/ApchGhm.png</a><br>
&gt;<br>
&gt; My workaround is to copy/paste everything to a different editor for now<br>
&gt; but as you can imagine this is not a lot of fun :)<br>
&gt; Any ideas how to go about making this work?<br>
<br>
</div></div>The standard error of kdialog is not redirected because the flag in<br>
<br>
    if (child.start (args, ChildProcess::wantStdOut))<br>
<br>
is ignored (juce_gui_basics/native/juce_linux_FileChooser.cpp).<br>
<br>
It means that the filename is all the kdialog output (stdout + stderr).<br>
Probably you are using old JUCE&#39;s code with a bug in<br>
<br>
    juce/modules/juce_core/native/juce/posix/SharedCode.h<br>
<br>
You can update JUCE or change the lines (the second `if&#39; is your problem):<br>
<br>
    if ((streamFlags | wantStdOut) != 0)<br>
    [...]<br>
    if ((streamFlags | wantStdErr) != 0)<br>
<br>
with<br>
<br>
    if ((streamFlags &amp; wantStdOut) != 0)<br>
    [...]<br>
    if ((streamFlags &amp; wantStdErr) != 0)<br>
</blockquote></div><br></div>