Files
wisp-open/internal/linux/process.go
Your Name ce49f66c89 fix: Add cross-platform handling for tray, updater, and icon generation
- Add platform notes for tray startup, shortcut saving, and Linux-only settings
- Handle stat error in processRecording (missing file)
- Select correct binary name based on OS in updater
- Increase tray icon canvas size from 64 to 128 pixels
- Update frontend dist asset hash
2026-06-09 15:14:30 -07:00

19 lines
599 B
Go

//go:build linux
// ============================================================
// LINUX-ONLY FILE — Linux process management utilities.
// Uses syscall.Kill(pid, 0) to check if a process is running.
// The Windows equivalent is in internal/windows/process.go
// ============================================================
package linux
import "syscall"
// IsProcessRunning checks if a process with the given PID exists on Linux.
func IsProcessRunning(pid int) bool {
// sending signal 0 checks if the process exists and we have permission
err := syscall.Kill(pid, 0)
return err == nil
}