Getting Started#

In order to start writing an application for the GNOME desktop environment, you should follow these steps:

../../_images/getting-started-new-project.png
  1. download and install the latest version of GNOME Builder

  2. in the Welcome screen, select Start new project

  3. configure the project options

    • write “text-viewer” as the project’s name

    • write “com.example.TextViewer” as the project’s application id.

    • select GPL-3+ as the licensing terms for your project

  4. select the GNOME Application template

../../_images/getting-started-project-files.png

Once Builder finishes creating your application’s project, you will find the following files:

com.example.TextViewer.json

This is the Flatpak manifest for your application. You can use the manifest to define your project’s dependencies. The default manifest depends on the lastest stable of the GNOME platform. You can also include additional dependencies not provided by the GNOME run time.

meson.build

This is the main Meson build file, which defines how and what to build in your application.

src

This is the directory with the sources of your application, as well as the UI definition files for its widgets.

src/text_viewer.gresource.xml

The GResource manifest for assets that will be built into the project using glib-compile-resources.

po/POTFILES

The list of files containing translatable, user-visible strings.

data/com.example.TextViewer.gschema.xml

The schema file for the settings of the application.

data/com.example.TextViewer.desktop.in

The desktop entry file for the application.

data/com.example.TextViewer.appdata.xml.in

The application metadata used by app stores and application distributors.

If you want to, you can now build and run the application by pressing the Run button, or Ctrl + F5.