Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
7.26k stars 390 forks source link

Non-hidden directories are grayed out in the browse dialogue when exporting images on Flatpak version #1060

Open gaboscharff99 opened 4 months ago

gaboscharff99 commented 4 months ago

Pixelorama version: v1.0-stable Flatpak OS/device including version: Linux Mint 21.3 Issue description: When I try to export any images on the latest Flatpak stable build and click the Browse button to select which directory to export to, any directories that aren't hidden are grayed-out and unselectable. It is still possible to export to these grayed out directories by simply typing the path into the export dialogue directly, however. File browsing dialogues from other places do not do this, either. Steps to reproduce: Click on Export or Export as..., then click on the Browse button in the resulting dialogue. While browsing around, any non-hidden directories would be grayed out.

OverloadedOrama commented 4 months ago

I cannot replicate on KDE Plasma unfortunately, but it since the Flatpak version is using native file dialogs, then it sounds either like an issue with your desktop environment's file dialogs, or like a permission issue. You may need to confirm that Pixelorama has permission to access the file system. An easy way to configure Flatpak permissions is with the Flatseal application.

gaboscharff99 commented 4 months ago

As I said, the directories are not grayed out when opening or saving, just when exporting. And I checked the permissions on Flatseal, too. It does have access to the entire home directory. Additionally, I can export to places within the home directory by simply typing the wanted location directly into the export dialogue, but browsing the files specifically doesn't work, and only in that specific context. I also know from experience that, when Flatpaks don't have access to specific directories, they're not grayed out, they simply do not show up. All this leads me to believe there is a problem in Pixelorama itself, at least the Flatpak version.

I should also mention that this didn't happen in previous versions. It only became a problem after updating Pixelorama.

OverloadedOrama commented 4 months ago

Does this happen in a non-Flatpak version?

gaboscharff99 commented 4 months ago

I'm not sure, I haven't tested it. Should I do that?

gaboscharff99 commented 4 months ago

I just tested it on the Itch.io version, and it doesn't do that. Then again, the Itch.io version uses its own file browser, it seems, rather than relying on the system's file browser.

OverloadedOrama commented 4 months ago

You can enable native file dialogs from the Edit menu, Preferences, Interface and toggling "Use native file dialogs". The Flatpak version is limited to native file dialogs only because it is sandboxed.

gaboscharff99 commented 4 months ago

Alright, the Itch.io version also has this problem when using native file dialogs, I just checked.