Hi,
I’m running Arch Linux x64 (fully updated) with KDE 4.10 and juce HEAD. I’ve stumbled across some unexpected behaviour, namely with FileChooser and the path of the resulting file. Here’s the code:
FileChooser fc("Select a file", File("/home/francois"));
if(!fc.browseForFileToOpen())
return;
File result(fc.getResult());
Log::write("PRINTING OF result.getFullPathName() :");
Log::write(result.getFullPathName());
Log::write("END OF PRINTING");
This results in the following:
The code causing this is in juce_linux_FileChooser.cpp in the showPlatformDialog function. Searching the forum, this code is taken from the following thread: http://www.rawmaterialsoftware.com/viewtopic.php?f=5&t=9975&hilit=kdialog . As can be seen from the terminal output the selected file is actually there, only it’s on the last line. The errors above it are from KDialog. When running the application as root, there is no problem - KDialog doesn’t output these errors then.
I’m not sure what’s the best way to solve it. For now I’ll just use the FileChooserDialogBox which works perfectly fine, but this issue requires some attention nonetheless.
Thanks!
EDIT: Redirecting stderr to /dev/null would work I think, but haven’t found out how to do this with any of the classes (Process/ChildProcess)