Skip to content

Tuner.File

A file or folder picker: an editable text row with a button that opens the system file dialog. The selected file is written as a file:// URI.

PropertyTypeDescription
titlestringRow title
select-folderboolPick a folder instead of a file

Usually used together with Tuner.PathTransform to show a clean, human-readable path:

blp
Tuner.File {
    title: _("Background image");

    binding: Tuner.Setting {
        schema-id: "org.gnome.desktop.background";
        schema-key: "picture-uri";

        transform: Tuner.PathTransform {
            hide-uri-prefix: true;
            fold-home-path: true;
        };
    };
}

Released under the GPL-3.0+ License. The content is available under CC BY-SA 4.0, unless stated otherwise.