Skip to content

Commit

Permalink
chore: ignore the error of getLastUser
Browse files Browse the repository at this point in the history
避免首次开机时报错

Bug: https://pms.uniontech.com/bug-view-282785.html
  • Loading branch information
zsien committed Nov 28, 2024
1 parent ba8cfdd commit d1fb4aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound-theme-player/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ func (m *Manager) Play(theme, event, device string) *dbus.Error {
}
uid, err := getLastUser()
if err != nil {
return dbusutil.ToError(err)
logger.Warning(err)
return nil
}
var cfg config
err = loadUserConfig(int(uid), &cfg)
Expand Down

0 comments on commit d1fb4aa

Please sign in to comment.