shellDBus: Add new OpenExtensionPrefs method
Unlike any other methods in the Extensions API, LaunchExtensionPrefs() opens what appears to be an application dialog, except that it is really a separate application that the caller has no control over. In order to address that, add a new OpenExtensionPrefs() method that takes additional parameters (modelled after the desktop portal APIs) that will make it possible to improve the behavior in the future. The new parameters are ignored for now, but pushing the API out now will allow us to fill in the functionality post the .0 release. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1074
This commit is contained in:

committed by
Florian Müllner

parent
3a39fb5ab8
commit
fda938175e
@ -312,6 +312,10 @@ var GnomeShellExtensions = class {
|
||||
}
|
||||
|
||||
LaunchExtensionPrefs(uuid) {
|
||||
this.OpenExtensionPrefs(uuid, '', {});
|
||||
}
|
||||
|
||||
OpenExtensionPrefs(uuid, _parentWindow, _options) {
|
||||
let appSys = Shell.AppSystem.get_default();
|
||||
let app = appSys.lookup_app('org.gnome.Extensions.desktop');
|
||||
let info = app.get_app_info();
|
||||
|
Reference in New Issue
Block a user