Skip to content

Add Linux support via /proc filesystem#1

Open
sundbp wants to merge 1 commit intonixlim:mainfrom
sundbp:main
Open

Add Linux support via /proc filesystem#1
sundbp wants to merge 1 commit intonixlim:mainfrom
sundbp:main

Conversation

@sundbp
Copy link

@sundbp sundbp commented Feb 20, 2026

Replace macOS-only architecture with cross-platform abstractions:

  • Linux ProcessAPI reads /proc/{pid}/{comm,cmdline,environ,cwd,net/tcp}
  • Platform-specific NewDefaultScanner factories (darwin/linux)
  • Linux desktop notifications via notify-send
  • Platform-neutral correlator portmap (no longer darwin-only)
  • Shared truncateSessionID helper extracted from darwin notifier
  • main.go uses NewPlatformNotifier() instead of NewOSAScriptNotifier()

Linux builds require no CGO, enabling trivial cross-compilation.

Replace macOS-only architecture with cross-platform abstractions:
- Linux ProcessAPI reads /proc/{pid}/{comm,cmdline,environ,cwd,net/tcp}
- Platform-specific NewDefaultScanner factories (darwin/linux)
- Linux desktop notifications via notify-send
- Platform-neutral correlator portmap (no longer darwin-only)
- Shared truncateSessionID helper extracted from darwin notifier
- main.go uses NewPlatformNotifier() instead of NewOSAScriptNotifier()

Linux builds require no CGO, enabling trivial cross-compilation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant