Skip to content

Use file-chooser portal on Linux #30692

@nojvspine

Description

@nojvspine

Is your feature request related to a problem?

Some closed issues like #972 suggest that GTK or QT filechoosers are used depending on desktop environment. I use xdg-desktop-portal-termfilechooser and yazi as a file chooser and all other apps use it through file chooser portal. However Telegram still uses QT default file chooser.

Describe the solution you'd like

It would be nice if it used file chooser portal if present and defaulted to QT when necessary.

Describe alternatives you've considered

Testing shows that using QT_QPA_PLATFORMTHEME=xdgdesktopportal makes Telegram use proper filechooser, but this makes it impossible to use qt6ct as theme selector (I need it for matugen)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions