What is "application()" in Provides?

Firefox package provide “application()”? What is application()? What is it purpose?

That means the package contains a desktop file. More information than you could possibly want about desktop files is in the desktop file specification.

1 Like

Okay, so what package Requires application()?

No package does that. The application() Provides is a marker for the package, identifying it as one with a desktop file. It isn’t used for dependency resolution.

1 Like

Then, what is the purpose for that marker?

It is used to identify packages that contain a desktop file. Suppose a new version of the desktop specification has been released, and you want to check Fedora packages to see if they comply with the new specification. You could run this command:

dnf repoquery --whatprovides 'application()'

Or if you want to find those you have installed on your system:

rpm -q --whatprovides 'application()'
1 Like

Thank you! :smile: