How To Install gtrayicon on Fedora 34

gtrayicon is Generic tray icon for GNOME

Introduction

In this tutorial we learn how to install gtrayicon on Fedora 34.

What is gtrayicon

Gtrayicon is a generic tray icon for GNOME. It defines two actions and deactivate, that are alternated by clicking in the tray icon. You choose what commands to run on each action. You can also define each action’s icon and a custom menu that is shown on left click. A sample menu file is included with the package. Check /usr/share/doc/gtrayicon-1.1/sample.menu for more info.

We can use yum or dnf to install gtrayicon on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install gtrayicon.

Install gtrayicon on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gtrayicon using dnf by running the following command:

sudo dnf -y install gtrayicon

Install gtrayicon on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gtrayicon using yum by running the following command:

sudo yum -y install gtrayicon

How To Uninstall gtrayicon on Fedora 34

To uninstall only the gtrayicon package we can use the following command:

sudo dnf remove gtrayicon

gtrayicon Package Contents on Fedora 34

/usr/bin/gtrayicon
/usr/lib/.build-id
/usr/lib/.build-id/75
/usr/lib/.build-id/75/fba825397b1ac35e7310e370396a901afdedab
/usr/share/doc/gtrayicon
/usr/share/doc/gtrayicon/ChangeLog
/usr/share/doc/gtrayicon/LICENSE
/usr/share/doc/gtrayicon/README
/usr/share/doc/gtrayicon/sample.menu
/usr/share/gtrayicon
/usr/share/gtrayicon/activate.svg
/usr/share/gtrayicon/deactivate.svg
/usr/share/gtrayicon/gtrayicon.glade
/usr/share/man/man1/gtrayicon.1.gz

References

Summary

In this tutorial we learn how to install gtrayicon on Fedora 34 using yum and dnf.