proc: fix capture of application id

This commit is contained in:
Christian Hergert
2021-02-25 13:03:46 -08:00
parent 7a8f1d9d2e
commit 8b0f3f4682

View File

@ -339,7 +339,7 @@ sysprof_proc_source_populate_pid_root (SysprofProcSource *self,
*/
if (flatpak == NULL)
{
flatpak = g_regex_new ("app-flatpak-[a-zA-Z_\\-\\.]+-[0-9]+\\.scope", G_REGEX_OPTIMIZE, 0, NULL);
flatpak = g_regex_new ("app-flatpak-([a-zA-Z_\\-\\.]+)-[0-9]+\\.scope", G_REGEX_OPTIMIZE, 0, NULL);
g_assert (flatpak != NULL);
}