Skip to content

Commit

Permalink
Merge pull request #80104 from bruvzg/freedesktop_native_file_dialog
Browse files Browse the repository at this point in the history
[Linux/Freedesktop] Implement native file selection dialog support.
  • Loading branch information
akien-mga committed Aug 17, 2023
2 parents 9a48b14 + 6cc314e commit c72b851
Show file tree
Hide file tree
Showing 9 changed files with 416 additions and 33 deletions.
4 changes: 3 additions & 1 deletion doc/classes/DisplayServer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@
Displays OS native dialog for selecting files or directories in the file system.
Callbacks have the following arguments: [code]bool status, PackedStringArray selected_paths[/code].
[b]Note:[/b] This method is implemented if the display server has the [code]FEATURE_NATIVE_DIALOG[/code] feature.
[b]Note:[/b] This method is implemented on Windows and macOS.
[b]Note:[/b] This method is implemented on Linux, Windows and macOS.
[b]Note:[/b] [param current_directory] might be ignored.
[b]Note:[/b] On Linux, [param show_hidden] is ignored.
[b]Note:[/b] On macOS, native file dialogs have no title.
[b]Note:[/b] On macOS, sandboxed apps will save security-scoped bookmarks to retain access to the opened folders across multiple sessions. Use [method OS.get_granted_permissions] to get a list of saved bookmarks.
</description>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/OS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
<return type="bool" />
<description>
Returns [code]true[/code] if application is running in the sandbox.
[b]Note:[/b] This method is implemented on macOS.
[b]Note:[/b] This method is implemented on macOS and Linux.
</description>
</method>
<method name="is_stdout_verbose" qualifiers="const">
Expand Down
Loading

0 comments on commit c72b851

Please sign in to comment.