mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
- 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
19 lines
599 B
Go
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
|
|
}
|