Files
wisp-open/internal/platform/platform_linux.go
T
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

44 lines
916 B
Go

//go:build linux
// ============================================================
// LINUX-ONLY FILE — Delegates all platform operations to the
// internal/linux package (overlay, media, startup, process).
// The Windows equivalent is platform_windows.go
// ============================================================
package platform
import "wis-free-v3/internal/linux"
func NewOverlay() Overlay {
return linux.NewOverlay()
}
func PauseMedia() bool {
return linux.PauseMedia()
}
func ResumeMedia(wasPaused bool) {
linux.ResumeMedia(wasPaused)
}
func AddToStartup() error {
return linux.AddToStartup()
}
func RemoveFromStartup() error {
return linux.RemoveFromStartup()
}
func IsInStartup() bool {
return linux.IsInStartup()
}
func IsProcessRunning(pid int) bool {
return linux.IsProcessRunning(pid)
}
func EnsureDesktopFile(iconBytes []byte) error {
return linux.EnsureDesktopFile(iconBytes)
}