This commit is contained in:
jahruz67
2026-05-08 19:09:02 -07:00
parent cb48a97365
commit 32008149d6
6 changed files with 81 additions and 12 deletions
+7
View File
@@ -112,6 +112,8 @@ func (a *App) StartRecording() {
a.overlay.Show("Recording...")
}
tray.IncrementTriggerCount()
// 2. Start recorder as soon as possible
if a.audioRecorder == nil {
logger.Error("Recorder not initialized")
@@ -473,6 +475,11 @@ func (a *App) startupHeadless() {
}
}
// Ensure desktop integration for Wayland portals
if err := platform.EnsureDesktopFile(); err != nil {
logger.Error("Failed to ensure desktop file: %v", err)
}
// Initialize Hotkey Listener
a.hotkeyListener = hotkey.NewListener(a.config.Shortcut, a.StartRecording, a.StopRecording)
a.hotkeyListener.Start()