1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-24 06:04:05 +03:00

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.

(cherry picked from commit b3b7cf8b7c35df14c6eb4f79da1a241dc0aa8c7e)
This commit is contained in:
David Rheinsberg 2024-10-11 10:46:05 +02:00 committed by Luca Boccassi
parent 361021a522
commit a9aa75145b

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`.