1st Contribution Hackathon, by LKCAMP

Thank you for coming to the the 1st Contribution Hackathon at GUADEC 2023. As the name implies, in this event, we’ll teach you how to make your first code contribution to GNOME. Buckle up!


There are three components that we need for making the contribution: flatpak, flathub, and GNOME Builder. Here’s how to get each of them:


Flatpak is a packaging format for graphical applications that works on any GNU/Linux distribution. It is the most widely embraced packaging format for GNOME applications. To get flatpak on your distro of choice, run:

Flatpak é um formato de empacotamento de aplicações gráficas, que funciona em qualquer distribuição de GNU/Linux (Fedora, Ubuntu, Arch, etc). Esse é o formato escolhido pelo Projeto GNOME para publicar seus pacotes, então o usaremos para instalar os aplicativos e suas dependências.

  • Ubuntu:
  sudo apt install flatpak
  • Arch:
  sudo pacman -S flatpak
  • Fedora:
  # already installed


Flathub is an app store for the flatpak packaging format. It’s one of the biggest software catalogs in the Linux world! You can get it on your computer by running:

flatpak remote-add --user --if-not-exists flathub \

GNOME Builder

Finally, GNOME Builder is an integrated development environment (IDE) for developing applications in the GNOME ecosystem. Install it with:

flatpak install org.gnome.Builder

And you’re all set!

What is GNOME?

GNOME is a software platform. That means GNOME provides an integrated stack for software development, distribution, and consumption.

An important part of this ecosystem are the GNOME apps, to which we’ll contribute in this event! These apps are built with GTK, using GNOME Human Interface Guidelines (HIG).

What is GTK?

In programmer’s lingo: it is an object oriented widgets-based framework for developing graphical applications. Let’s break that down!

  • Object oriented:

Object Oriented Programming is a programming paradigm that seeks to improve code organization, reduce code duplication, among many other things. Object Oriented Programming is very “concept heavy”, so teaching everything about it is out of scope for this event. Still, we hope to spark your curiosity enough for you to look it up on your own later :)

  • Widgets-based:

In GTK, every graphical element is a “widget”. These widgets are organized hierarchically, for example Window → Header bar → Menu button. Here are some of the widgets and their names, in the wonderful Frog application:

Widgets’ behaviur and appearance can be configured with a programming language (C, Python, Rust, Javascript, Vala, etc) and/or a markup language (XML, Blueprint, etc).

  • Graphical applications:

Graphical applications are applications that show a window to the user. Some applications are not graphical, for example, that ones that run directly on the terminal.

Access Keys


GTK has a feature called Access Keys (also known as “mnemonics”). Here’s how it works:

  • Hold the Alt key until some characters are underlined
  • Press an underlined characters while you hold Alt
  • The action associated with that widget will be triggered


Access Keys are an important for two use cases:

  • Offering a keyboard-centric workflow for power users
  • Improving the accessibility of the GNU/Linux desktop


To implement an Access Key for a widget within a application, you need to prepend an underline (_) to whichever character you want to highlighted when the user hold the Alt key. For example, to highlight the C in button whose label is "Continue", go with "_Continue".

Then, activate the Access Key feature for that widget. To do that you need to set the property “user-underline” to True.

This can sometimes be done with programming or markup languages. For programming languages, you’ll find some examples in the official documentation. Luckly for you, we have also made some additional examples, which you can checkout in the Projects Sheet. Here are some highlights:

Example in XML

Contribution by Gustavo Pechta to the app “Komikku” (link).

Example in Python

Contribution by Tárik Sá to the app “What IP” (link).

Example in Javascript

Contribution by Pedro Sader Azevedo to the extension “Space Bar” (link).

GNOME Human Interface Guidelines

Now you might asking yourself: How to I decide which widgets to add mnemonics to? Which characters should I choose to underline?

The answer to all these questions (and plenty more) lie in the GNOME Human Interface Guidelines (HIG). This document describes, in a very detailed manner, directives for building graphical user interfaces that comply with the design standards of GNOME.

The HIG contains a section on Access Keys, that you should read thoroughly (it’s very short). When you’re back, here’s summary on how to implement Access Keys in GNOME apps:

  • As many as you can
  • Prioritize most used widgets
  • Prefer the first letter
  • Avoid thin letters (i)
  • Avoid ambiguous letters (I, l)
  • Avoid letters with descenders (g, y, q)
  • Avoid vowels (a, e, i, o, u)

Tip: view switchers are usually good candidates for Access Keys! They look like this:


The most popular version control system is git. We’ll need to use its command line interface (CLI) to make our contribution but, unfortunately, git is a very complex and convoluted tool. Teaching all about it would take a very long (probably a workshop of its own). If want a deeper introduction to the concepts of git you can read “The tip of the git iceberg”, by yours truly 😉.

That being said, we’ll only give you what you need for this workshop:

  1. Download the source code of the application
git clone https://...
  1. Create a new branch for your contribution
git checkout -b add-access-keys
  1. See commit history to check for conventions
git log
  1. Create a new version of the application
git commit
  1. Send your branch to your GitHub/GitLab account
git push origin add-access-keys
Warning: We’ll contribute to projects that are hosted on GitHub and GitLab. Although there’s only link for GitHub (, there are multiple links to GitLab (,, etc). Make sure you create your account using the same GitLab link as your chosen project is hosted at.

After you’ve pushed your changes to your GitHub/GitLab account, you have to request that the maintainers of the project accept your contribution. This is known as a “merge request” (MR) or a “pull request” (PR).

When either of these git platforms detect a git push coming from you, they will offer you to create an MR/PR. Accept the offer and write a detailed description of what your contribution does. Again, you can check the examples in the Project Sheet.


Finally, you’re all set! Follow the steps below to make your first code contribution to GNOME and don’t hesitate to ask any questions.

  1. Pick a project and write down your name in the sheet
  2. Find the project’s repository in its Flathub page
  3. Create an account and access token at GitHub/GitLab
  4. For the the project and clone your fork
  5. Build once without any modifications
  6. Implement the Access Keys
  7. Check the commit conventions
  8. Commit, push, and PR/MR
  9. Put the PR/MR link in the sheet
  10. Wait for feedback


This blog post is a slightly re-written translation of this blog post by LKCAMP, which was written by myself and Tárik Sá.