# Step 6: Add a preference dialog

The original files are located in the following directory.

- https://gitlab.gnome.org/GNOME/gtk/-/blob/main/examples/application6

The original schema file is [here](https://gitlab.gnome.org/GNOME/gtk/-/blob/main/examples/application6/org.gtk.exampleapp.gschema.xml) and the license is LGPL 2.1 or later.

Run `rake` before trying `exampleapp.rb`.

```console
$ cd gtk4/sample/examples/application6
$ rake
$ ruby exampleapp.rb README.md Rakefile
```
