How To Install xdg-desktop-portal-gtk on Rocky Linux 8

In this tutorial we learn how to install xdg-desktop-portal-gtk on Rocky Linux 8. xdg-desktop-portal-gtk is Backend implementation for xdg-desktop-portal using GTK+

Introduction

In this tutorial we learn how to install xdg-desktop-portal-gtk on Rocky Linux 8.

What is xdg-desktop-portal-gtk

A backend implementation for xdg-desktop-portal that is using GTK+ and various pieces of GNOME infrastructure, such as the org.gnome.Shell.Screenshot or org.gnome.SessionManager D-Bus interfaces.

We can use yum or dnf to install xdg-desktop-portal-gtk on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install xdg-desktop-portal-gtk.

Install xdg-desktop-portal-gtk on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install xdg-desktop-portal-gtk using dnf by running the following command:

sudo dnf -y install xdg-desktop-portal-gtk

Install xdg-desktop-portal-gtk on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install xdg-desktop-portal-gtk using yum by running the following command:

sudo yum -y install xdg-desktop-portal-gtk

How To Uninstall xdg-desktop-portal-gtk on Rocky Linux 8

To uninstall only the xdg-desktop-portal-gtk package we can use the following command:

sudo dnf remove xdg-desktop-portal-gtk

xdg-desktop-portal-gtk Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/50
/usr/lib/.build-id/50/d4c32c0e6f13e33abf84ffaa16c66c1284ab5d
/usr/lib/systemd/user/xdg-desktop-portal-gtk.service
/usr/libexec/xdg-desktop-portal-gtk
/usr/share/applications/xdg-desktop-portal-gtk.desktop
/usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
/usr/share/doc/xdg-desktop-portal-gtk
/usr/share/doc/xdg-desktop-portal-gtk/NEWS
/usr/share/licenses/xdg-desktop-portal-gtk
/usr/share/licenses/xdg-desktop-portal-gtk/COPYING
/usr/share/locale/cs/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/da/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/de/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/en_GB/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/es/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/fr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/gl/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/hu/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/id/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/it/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/lt/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/pl/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/pt_BR/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/ru/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/sk/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/sr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/sv/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/tr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/uk/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/zh_CN/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/locale/zh_TW/LC_MESSAGES/xdg-desktop-portal-gtk.mo
/usr/share/xdg-desktop-portal/portals/gtk.portal

References

Summary

In this tutorial we learn how to install xdg-desktop-portal-gtk on Rocky Linux 8 using yum and dnf.