Can't select a folder in Qt-based dialog


Hi, I’m trying to package Solarus Game Engine, a GUI that helps people make games. I’ve already tried Flatpak and it failed for this exact reason.

When using “File > New quest…” this is what it’s supposed to look like:

You can choose a folder. Each game is represented by a folder.

But my Snappy build doesn’t do this. It only lets me choose a file. Here’s my Snappy build:

You cannot choose a folder. This dialog only lets you choose a file. But we really need the ability to choose a folder.

Like I said earlier, I had the same issue with Flatpak. Here’s my Flatpak build:

(here’s more info about why the Flatpak maybe didn’t work, no clue why the snap doesn’t: )

Finally, here’s my snapcraft.yml file:

name: solarus
version: "1.6"
summary: A free and open-source Action-RPG game engine
description: |
  Solarus is a free and open-source Action-RPG game engine, licensed under GPL,
  and written in C++. It runs quests in Lua, and can work on a great number
  of platforms. Solarus also features a game editor called Solarus Quest Editor,
  written in C++ with Qt to help you create your game.

confinement: devmode

    command: desktop-launch solarus-launcher

    plugin: cmake
    source-type: git
    source-commit: 633bad6be5fbe2f77c3d63db497f7d7e2b1128f6
      - g++
      - make
      - libsdl2-dev
      - libsdl2-image-dev
      - libsdl2-ttf-dev
      - libluajit-5.1-dev
      - libphysfs-dev
      - libopenal-dev
      - libmodplug-dev
      - libvorbis-dev
      - qtbase5-dev
      - qttools5-dev
      - qttools5-dev-tools
      - libglm-dev
    after: [desktop-qt5]

Any ideas? Thank you!