Skip to content

Commit

Permalink
polKitAgent: Don't crash when we cannot enable/disable the auth agent
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Dec 19, 2024
1 parent c48a596 commit f60d20f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/ui/polkitAuthenticationAgent.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,11 @@ var AuthenticationAgent = class {
this._native.connect('initiate', this._onInitiate.bind(this));
this._native.connect('cancel', this._onCancel.bind(this));
// TODO - maybe register probably should wait until later, especially at first login?
this._native.register();
try {
this._native.register();
} catch(e) {
global.logWarning('Failed to register Polkit Agent');
}
this._currentDialog = null;
}

Expand Down

0 comments on commit f60d20f

Please sign in to comment.