diff --git a/misc/config/example.yaml b/misc/config/example.yaml index 27568de..a0ec6b0 100644 --- a/misc/config/example.yaml +++ b/misc/config/example.yaml @@ -91,17 +91,23 @@ rules: # To make these rules working across desktop environments, # please take a look on https://systemd.io/DESKTOP_ENVIRONMENTS/. # NOTE: - # | Desktop Environment | Launcher | - # |---------------------|-----------| - # | GNOME | `"gnome"` | - # | dde | `"DDE"` | - # | KDE | none | - # So we should use `(?:-(?:gnome|DDE))?` to match `-` + # | Desktop Environment | Launcher | + # |---------------------|-------------| + # | GNOME | `"gnome"` | + # | dde | `"DDE"` | + # | KDE | none | + # | flatpak | `"flatpak"` | + # So we should use + # ``` + # \/user\.slice\/user-\d+\.slice\/user@\d+\.service\/app\.slice\/app(?:-(?:gnome|DDE|flatpak))?-APPID(?:-.+\.scope|(?:@.+)?\.service) + # ``` + # to match application named `APPID`. + # Check https://regex101.com/r/BgZcws/2 for example application cgroup names. # https://parsec.app/ # `parsec` should always connect to network directly. - match: |- - \/user\.slice\/user-\d+\.slice\/user@\d+\.service\/app\.slice\/app(?:-(?:gnome|DDE))?-parsecd-\d+\.(?:service|scope) + \/user\.slice\/user-\d+\.slice\/user@\d+\.service\/app\.slice\/app(?:-(?:gnome|DDE|flatpak))?-(?:parsecd|com\.parsecgaming\.parsec)(?:-.+\.scope|(?:@.+)?\.service) direct: true # For any cgroup else, TPROXY to clash-meta.