Skip to content

Commit

Permalink
requirements.rst: Add app IDs and D-Bus
Browse files Browse the repository at this point in the history
  • Loading branch information
allanday committed Apr 10, 2018
1 parent f947579 commit 5a548a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions docs/requirements.rst
Expand Up @@ -5,6 +5,11 @@ Flatpak deliberately makes as few requirements of applications as possible. Howe

Those who have previously targeted the Linux desktop will typically be familiar with these conventions.

Application IDs
---------------

As described in :doc:`using-flatpak`, Flatpak requires each application to have a unique identifier, which has a three part form such as ``org.gnome.Dictionary``. Developers should follow the standard `D-Bus naming conventions <https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names>`_ when creating their own IDs.

Application icons
-----------------

Expand Down Expand Up @@ -83,3 +88,10 @@ Each application sandbox contains the filesystem of the application's runtime, w
- ``/usr`` - multi-user utilities and applications

In addition to this, each sandbox contains a top-level ``/app`` directory, which is where the application's own files are located.

D-Bus
-----

`D-Bus <https://www.freedesktop.org/wiki/Software/dbus/>`_ is the standard framework for interprocess communication on Linux desktops. Applications do not always need to use it, and often portals will be a better choice. However, there are a few cases where D-Bus is required, such as when integrating with system-provided media controls, through the `MPRIS specification <https://specifications.freedesktop.org/mpris-spec/latest/>`_.

If an application provides a D-Bus service, the D-Bus service name is expected to be the same as the application ID.
2 changes: 0 additions & 2 deletions docs/using-flatpak.rst
Expand Up @@ -16,8 +16,6 @@ Identifiers

Flatpak identifies each application and runtime using a unique three-part identifier, such as ``com.company.App``. The final segment of this address is the object's name, and the preceding part identifies the developer, so that the same developer can have multiple applications, like ``com.company.App1`` and ``com.company.App2``.

Developers should follow the standard `D-Bus naming conventions <https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names>`_ when creating their own IDs. If an application provides a D-Bus service, the D-Bus service name is expected to be the same as the application ID.

Identifier triples
``````````````````

Expand Down

0 comments on commit 5a548a8

Please sign in to comment.