godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.75k stars 21.12k forks source link

External Programs - File menu does not show all files/all applications #75000

Open MartinMajewski opened 1 year ago

MartinMajewski commented 1 year ago

Godot version

v4.0.1.rc1.mono.official [d23922ffe]

System information

macOS 13.2.1 (22D68) on MacBook Pro 16 - 2021 - with M1 Max, 64GB

Issue description

Bildschirm­foto 2023-03-16 um 21 32 41

When opening Editor -> Editor Settings... at FileSystem -> External Programs, I cannot assign an external application for any of the four options. The Open a File menu does only show a hand full of .app files. Applications like, e.g., Affinity Designer or Affinity Photo are not on the list.

The filter option is set to All Files (*), but still unsuccessful.

I've encountered this issue on Godot 4.0 stable, firstly, and it still seems to persist in the 4.0.1 RC1.

Edit: The Show hidden files option does not change anything.

Steps to reproduce

As mentioned in the issue description.

Minimal reproduction project

any project should work

Calinou commented 1 year ago

This may be due to macOS sandbox limitations.

cc @bruvzg

bruvzg commented 1 year ago

Godot file dialog shows real file as is (so it will show file names not bundle display name, system apps will be in the /System/Applications, etc.), Finder merge all applications into a single list. For the same behavior, we'll need to use a native file dialog (https://github.com/godotengine/godot/pull/47499). Also, most macOS's apps are usually installed in the /Applications not int the /Users/*/Applications.

As a workaround, to get the real file location you can right-click on the required app in the Finder, select Get Info, right-click on the Where: select Copy as Pathname and paste it into Godot file dialog.