# Native FileChooser not used on Linux + XFCE

**URL:** <https://forum.juce.com/t/native-filechooser-not-used-on-linux-xfce/26347>\
**Category:** Linux\
**Created:** [February 10, 2018, 6:08pm UTC](https://forum.juce.com/t/native-filechooser-not-used-on-linux-xfce/26347 "2018-02-10T18:08:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jnv](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jnv/32/11862_2.png) [@Jnv](https://forum.juce.com/u/Jnv)\
**Post date:** [February 10, 2018, 6:08pm UTC](https://forum.juce.com/t/native-filechooser-not-used-on-linux-xfce/26347/1 "2018-02-10T18:08:42Z")

</div>

Some users of my application have reported a problem: the **native** FileChooser on Linux, using **XFCE** desktop, never shows. Instead, the JUCE one shows.  
I of course make sure that I set the “useOSNativeDialogBox” to true when instantiating the FileChooser.

On any other system I tested (Windows, Mac, Linux (Ubuntu/Mint), this works fine though, so the problem seems to be linked with XFCE.

Is it a bug?  
One user said : “I’ve been fiddling with the themes in my XFCE, both with GTK2 and GTK3, with no change”.

Thanks!

---

<div class="post-metadata">

**Author:** ![matkatmusic](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@matkatmusic](https://forum.juce.com/u/matkatmusic)\
**Post date:** [February 11, 2018, 5:22am UTC](https://forum.juce.com/t/native-filechooser-not-used-on-linux-xfce/26347/2 "2018-02-11T05:22:21Z")

</div>

Check out the constructor for FileChooser(). if you follow the code, you’ll arrive at this native command for Linux:

```auto
bool FileChooser::isPlatformDialogAvailable()
{
   #if JUCE_DISABLE_NATIVE_FILECHOOSERS
    return false;
   #else
    static bool canUseNativeBox = exeIsAvailable ("zenity") || exeIsAvailable ("kdialog");
    return canUseNativeBox;
   #endif
}

```

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [February 12, 2018, 9:30am UTC](https://forum.juce.com/t/native-filechooser-not-used-on-linux-xfce/26347/3 "2018-02-12T09:30:06Z")

</div>

Yes, your users need to either have zenity or kdialog installed. Simply add those as a dependency to your app.
