Comply with GJS packaging spec

According to spec, package name should always be set to main package name in DBus name format
This commit is contained in:
Rafał Dzięgiel
2021-09-06 14:29:16 +02:00
parent 7aa03f3e72
commit 873e724bf2
3 changed files with 3 additions and 23 deletions

View File

@@ -1,12 +1,10 @@
#!@GJS@
const Package = imports.package;
Package.init({
imports.package.init({
name: '@PACKAGE_NAME@',
version: '@PACKAGE_VERSION@',
prefix: '@prefix@',
libdir: '@libdir@',
datadir: '@datadir@',
});
Package.run(imports.src.main);
imports.package.run(imports.src.main@ID_POSTFIX@);