mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 08:21:59 +02:00
It seems that libadwaita does not like being initialized too early. Move the init function into the beggining of main() to make it happy.
23 lines
433 B
JavaScript
23 lines
433 B
JavaScript
imports.gi.versions.Gdk = '4.0';
|
|
imports.gi.versions.Gtk = '4.0';
|
|
imports.gi.versions.Soup = '2.4';
|
|
|
|
pkg.initGettext();
|
|
|
|
const { Gtk, Adw } = imports.gi;
|
|
const { AppRemote } = imports.src.appRemote;
|
|
const Misc = imports.src.misc;
|
|
|
|
const ID_POSTFIX = 'Remote';
|
|
|
|
Misc.clapperPath = `${pkg.datadir}/${Misc.appId}`;
|
|
Misc.appId += '.' + ID_POSTFIX;
|
|
|
|
function main(argv)
|
|
{
|
|
Gtk.init();
|
|
Adw.init();
|
|
|
|
new AppRemote().run(argv);
|
|
}
|