Skip to content

Diego-Ivan/libportal-vala-demo

Repository files navigation

Libportal Vala Demo

This project is not affiliated with the Flatpak organization, nor with the upstream Libportal project

This is a demo for the Libportal written in the Vala Programming Language

Portals Available

  • Accounts (User information)
  • Background
  • Camera (Kinda, needs help to be 100% completed)
  • Color Picker
  • Email
  • File Chooser (Open and Save Files)
  • Location
  • Notification
  • Open URI
  • Print File
  • Remote Desktop
  • Screencast
  • Screenshot
  • Session (inhibit, monitor)
  • Spawn
  • Trash File
  • Updates
  • Wallpaper

Install and Running

GNOME Builder

The recommended way of running this project is through Flatpak and GNOME Builder. Clone the project and run. Requires the org.gnome.Platform runtime, from the master branch. You can get it from the GNOME Nightly Flatpak remote. Libportal and Libshumate will be built with the project.

To install, use the Export as package feature (available in the top bar omniarea) and open the .flatpak double-clicking, and install.

Other

This project requires the following dependencies:

gtk4
libadwaita-1
libportal
libportal-gtk4
shumate-1.0

Build using the Meson Build System:

meson builddir --prefix=/usr
cd builddir
ninja
./src/libportal-vala-sample

To install, run in the builddir:

sudo ninja install