Use proper ID for remote app

This commit is contained in:
Rafostar
2020-12-16 14:42:40 +01:00
parent 04f1d2397f
commit 57ceb17100
4 changed files with 20 additions and 16 deletions

View File

@@ -14,13 +14,12 @@ class ClapperAppBase extends Gtk.Application
opts = opts || {};
let defaults = {
idPostfix: '',
playlist: [],
};
Object.assign(this, defaults, opts);
super._init({
application_id: Misc.appId + this.idPostfix
application_id: Misc.appId,
});
this.doneFirstActivate = false;

View File

@@ -4,14 +4,13 @@ imports.gi.versions.Gtk = '4.0';
const { AppRemote } = imports.clapper_src.appRemote;
const Misc = imports.clapper_src.misc;
const opts = {
idPostfix: 'Remote',
};
const ID_POSTFIX = 'Remote';
Misc.clapperPath = pkg.datadir + '/' +
pkg.name.substring(0, pkg.name.lastIndexOf(opts.idPostfix));
Misc.clapperPath = `${pkg.datadir}/${Misc.appId}`;
Misc.appName += ID_POSTFIX;
Misc.appId += '.' + ID_POSTFIX;
function main()
{
new AppRemote(opts).run();
new AppRemote().run();
}