Native file chooser


#1

Hi,

I have an issue with the filechooser. By default it seems to determine, during runtime, whether or not to use a native application (zenity or kdialog). It resolves the availability by using 'which' (i.e. which zenity) and then checks the output of the command. However, ChildProcess reads output from both stderr and stdout by default and if which fails it prints an error message.

This makes the execIsAvailable return true for all programs, no matter if it exists or not.

A quick fix would be to only read stderr output from the child process, but I am not sure if this is reliable for all versions of which. Otherwise it should be possible to peek at the return code from the child application.

I'd appreciate a confirmation on whether this is a bug or not. If not, any tips on how to solve this?

 

Best