mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
7
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user