Skip to content

Commit

Permalink
Rename registered cgroups to have app- prefix
Browse files Browse the repository at this point in the history
The newly added https://systemd.io/DESKTOP_ENVIRONMENTS/ lists an XDG
defined specification for how cgroups for applications should be named.

This will allow flatpak's to correctly follow any drop-in's set for
applications on the system as well as help next-gen system monitor's
treat flatpaks as applications.

flatpak-session-helper.service is unaffected.
  • Loading branch information
davidedmundson authored and alexlarsson committed May 4, 2020
1 parent 2be81a0 commit e481e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/flatpak-run.c
Expand Up @@ -1666,7 +1666,7 @@ flatpak_run_in_transient_unit (const char *appid, GError **error)
if (!manager)
goto out;

name = g_strdup_printf ("flatpak-%s-%d.scope", appid, getpid ());
name = g_strdup_printf ("apps-flatpak-%s-%d.scope", appid, getpid ());

g_variant_builder_init (&builder, G_VARIANT_TYPE ("a(sv)"));

Expand Down

0 comments on commit e481e3e

Please sign in to comment.