Skip to content

Commit

Permalink
fix: keybinding not valid
Browse files Browse the repository at this point in the history
AM should be reload before create a new desktop file

Log:
  • Loading branch information
dengbo11 committed Nov 13, 2023
1 parent 06eede8 commit 67fabb1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions keybinding/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,11 @@ func (m *Manager) execCmd(cmd string, viaStartdde bool) error {
}

appManager := newAppmanager.NewManager(m.sessionSigLoop.Conn())
err := appManager.ReloadApplications(0)
if err != nil {
logger.Warning("reload applications error: ", err)
}

desktopFileName, err = appManager.AddUserApplication(0, desktopInfoMap, desktopFileName)
if err != nil {
logger.Warning("adding user application error: ", err)
Expand Down

0 comments on commit 67fabb1

Please sign in to comment.