docs/DESKTOP_ENVIRONMENTS: clarify name aliases

Add a note to the service-file naming scheme that reminds developers
that those names might be aliases. Hence, when parsing such unit names,
the entire name-array of a unit must be parsed, rather than just the
unit ID.

The service-name of existing applications might be already part of their
API. Hence, not all applications can switch the service ID to this new
naming scheme, but can provide suitable aliases. Document this behavior.
This commit is contained in:
David Rheinsberg
2024-10-11 10:46:05 +02:00
parent cbaebf811e
commit b3b7cf8b7c

View File

@@ -81,7 +81,10 @@ This has the following advantages:
adjusted using desktop environment specific drop-in files.
* The application ID can be retrieved by stripping the prefix and postfix.
This in turn should map to the corresponding `.desktop` file when available
This in turn should map to the corresponding `.desktop` file when available.
Note that this nameing scheme might be a unit alias, so runtime detection
must check the entire name-array of a unit, rather than just its unit ID.
TODO: Define the name of slices that should be used.
This could be `app-<launcher>-<ApplicationID>-<RANDOM>.slice`.