A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.gnome.org/documentation/tools/../tutorials/application-id.html below:

Application ID - GNOME Developer Documentation

Toggle table of contents sidebar

Application ID

GNOME technologies make extensive use of “reverse DNS” style identifiers for applications. One of the first things that you will need to do when developing an application is to choose an appropriate identifier.

Note

An example of such an identifier is “org.gnome.TextEditor”

Application identifiers are widely used and changing them later can cause problems. For this reason, you should choose your identifier carefully, with an eye to the future of your application.

Things that use application IDs

Application IDs are used in the following places:

Rules for application IDs

The precise rules for what makes a valid application ID are as follows:

Warning

While hyphens are allowed, you should not use them in your application ID, as they are not supported by all components that might use the ID, like D-Bus. If you are using a real DNS name as the basis for your application ID, and the name contains an hyphen, you should replace it with an underscore. For instance: from 7-zip.org to org._7_zip.

See also

For more information on what constitutes a valid application id, you should read the documentation for g_application_id_is_valid()

Guidelines for choosing an application ID

The most important thing in choosing a name is that it must be globally unique. Bad things will happen if two unrelated applications try to use the same application ID.

For this reason, it is very strongly recommended to choose a name based on the global public DNS system. For example, if you owned the domain yorba.org, you would probably want to name your application “MyApp” like “org.yorba.MyApp”.

If your application is a member of or strongly affiliated with a given Free Software project then it is appropriate to use the public DNS name of that project, provided you follow their guidelines and policies. “Strongly affiliated” in this case generally means “using the version control, bugtracking, etc. of the project in question”.

Important

In the case of the GNOME project, applications which are hosted in the GNOME group on gitlab.gnome.org should use names like “org.gnome.MyApp”.

Sometimes it is not possible to choose an ID based on a domain that you own. In this case, it is usually possible to fall back to something reasonable, such as an account name on a public provider. Names such as “com.github.username.MyApp” or “com.gmail.myemailaddr.MyApp” are examples of those.

The Flatpak documentation also provides guidelines.

Application ID for Flatpak development

For development builds, it is recommended to use a different application ID so that it can be installed and used alongside the stable build.

The recommended way is to suffix your application ID with .Devel, for example org.gnome.TextEditor.Devel.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3