mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Add some init debug messages
To get an overall idea how long initialization takes
This commit is contained in:
@@ -17,7 +17,7 @@ const ShellProxyWrapper = Gio.DBusProxy.makeProxyWrapper(`
|
|||||||
|
|
||||||
let shellProxy = null;
|
let shellProxy = null;
|
||||||
|
|
||||||
debug('initializing GNOME Shell DBus proxy');
|
debug('creating GNOME Shell DBus proxy');
|
||||||
new ShellProxyWrapper(
|
new ShellProxyWrapper(
|
||||||
Gio.DBus.session,
|
Gio.DBus.session,
|
||||||
'org.gnome.Shell',
|
'org.gnome.Shell',
|
||||||
|
@@ -5,14 +5,21 @@ imports.gi.versions.Soup = '2.4';
|
|||||||
pkg.initGettext();
|
pkg.initGettext();
|
||||||
pkg.initFormat();
|
pkg.initFormat();
|
||||||
|
|
||||||
|
const Debug = imports.src.debug;
|
||||||
|
Debug.debug('imports');
|
||||||
|
|
||||||
const { GstClapper, Gtk, Adw } = imports.gi;
|
const { GstClapper, Gtk, Adw } = imports.gi;
|
||||||
const { App } = imports.src.app;
|
const { App } = imports.src.app;
|
||||||
|
|
||||||
function main(argv)
|
function main(argv)
|
||||||
{
|
{
|
||||||
|
Debug.debug('main');
|
||||||
|
|
||||||
GstClapper.Clapper.gst_init(null);
|
GstClapper.Clapper.gst_init(null);
|
||||||
Gtk.init();
|
Gtk.init();
|
||||||
Adw.init();
|
Adw.init();
|
||||||
|
|
||||||
|
Debug.debug('initialized');
|
||||||
|
|
||||||
new App().run(argv);
|
new App().run(argv);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user