logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_HINT_FILE_DIALOG_DRIVER - A variable that specifies a dialog backend to use.

Availability

       This hint is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                     SDL_HINT_FILE_DIALOG_DRIVER(3)

Description

       By  default, SDL will try all available dialog backends in a reasonable order until it finds one that can
       work, but this hint allows the app or user to force a specific target.

       If the specified target does not exist or is not available, the dialog-related function calls will fail.

       This hint currently only applies to platforms using the generic "Unix" dialog implementation, but may  be
       extended  to  more  platforms  in the future.  Note that some Unix and Unix-like platforms have their own
       implementation, such as macOS and Haiku.

       The variable can be set to the following values:

       • NULL: Select automatically (default, all platforms)

       • "portal": Use XDG Portals through DBus (Unix only)

       • "zenity": Use the Zenity program (Unix only)

       More options may be added in the future.

       This hint can be set anytime.

Header File

       Defined in SDL3/SDL_hints.h

Name

       SDL_HINT_FILE_DIALOG_DRIVER - A variable that specifies a dialog backend to use.

Synopsis

#include"SDL3/SDL.h"#defineSDL_HINT_FILE_DIALOG_DRIVERSDL_FILE_DIALOG_DRIVER"

See Also