diff options
| author | Paweł Stołowski <stolowski@gmail.com> | 2022-02-02 14:24:53 +0100 |
|---|---|---|
| committer | Paweł Stołowski <stolowski@gmail.com> | 2022-02-02 14:24:53 +0100 |
| commit | 0e0adbbb5b8cb839073cdffd5335f6dc3b1b24ba (patch) | |
| tree | 6882bc449b1755c48f2e953e2a410fddd31652bc | |
| parent | e12709f42e118e417ffd88cfdbeff762409a06e9 (diff) | |
Only send finish refresh notification to current user.notifications/finish-refresh
| -rw-r--r-- | cmd/snap/inhibit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/snap/inhibit.go b/cmd/snap/inhibit.go index 8a5794fd29..12c7d28d6c 100644 --- a/cmd/snap/inhibit.go +++ b/cmd/snap/inhibit.go @@ -82,7 +82,7 @@ var pendingRefreshNotification = func(refreshInfo *client.PendingSnapRefreshInfo } var finishRefreshNotification = func(refreshInfo *client.FinishedSnapRefreshInfo) error { - userclient := client.New() + userclient := client.NewForUids(os.Getuid()) if err := userclient.FinishRefreshNotification(context.TODO(), refreshInfo); err != nil { return err } |
