extensions-app: Pick up app ID from package

This will allow us to build different applications from the
same sources (namely "Extensions" and "Extensions Nightly").

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3612

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1661>
This commit is contained in:
Florian Müllner 2021-01-22 22:08:41 +01:00
parent bf1fa3879f
commit e8ca92a0ff

View File

@ -41,7 +41,7 @@ var Application = GObject.registerClass(
class Application extends Gtk.Application { class Application extends Gtk.Application {
_init() { _init() {
GLib.set_prgname('gnome-extensions-app'); GLib.set_prgname('gnome-extensions-app');
super._init({ application_id: 'org.gnome.Extensions' }); super._init({ application_id: Package.name });
this.connect('window-removed', (a, window) => window.run_dispose()); this.connect('window-removed', (a, window) => window.run_dispose());
} }
@ -217,8 +217,8 @@ var ExtensionsWindow = GObject.registerClass({
program_name: _('Extensions'), program_name: _('Extensions'),
comments: _('Manage your GNOME Extensions'), comments: _('Manage your GNOME Extensions'),
license_type: Gtk.License.GPL_2_0, license_type: Gtk.License.GPL_2_0,
logo_icon_name: 'org.gnome.Extensions', logo_icon_name: Package.name,
version: imports.package.version, version: Package.version,
transient_for: this, transient_for: this,
modal: true, modal: true,