PCP · pcp
PCP Native — Tier 1 App Detection
Native Tier 1 adapter with .desktop file parsing — detects Portal-native apps via X-Portal-PCP-Manifest keys.
pcp-nativev0.2.0pcp
2.4K
Lines of Code
130
Tests
19
Files
Architecture
.desktop file parser that reads X-Portal-* keys, loads manifest JSON, creates capability registrations.
Overview
pcp-native provides the Tier 1 detection path for the Portal Capability Protocol. Portal-native apps annotate their .desktop files with X-Portal-PCP-Tier, X-Portal-PCP-Manifest, and X-Portal-Display-Target keys. This crate parses those keys (case-insensitively), loads the referenced capability manifest JSON, and registers the app as a Tier 1 PCP provider. This is the preferred detection path — Tier 1 apps have typed capabilities with Ed25519-signed manifests.
Data Flow
App installs .desktop file → pcpd scans → pcp-native parses X-Portal-* keys → loads manifest → verifies Ed25519 signature → registers as Tier 1
Dependencies
Internal (1)
External (9)
thiserror workspaceserde workspaceserde_json workspacetracing workspacechrono workspacetokio workspaceglob 0.3goblin workspaceasync-trait workspace
Depends on pcp-core. Parses X-Portal-PCP-* keys per PCP v4.2 §21.