If systemd is enabled send a message with MESSAGE_ID after gnome-shell has started in user mode

Also adds a new dependency - libgsystem
https://bugzilla.gnome.org/show_bug.cgi?id=728449
This commit is contained in:
Vadim Rutkovsky 2014-04-18 16:31:18 +02:00
parent f8bac5c197
commit 1c8036b863

View File

@ -9,6 +9,7 @@ const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const GSystem = imports.gi.GSystem;
const Components = imports.ui.components;
const CtrlAltTab = imports.ui.ctrlAltTab;
@ -43,6 +44,7 @@ const DEFAULT_BACKGROUND_COLOR = Clutter.Color.from_pixel(0x2e3436ff);
const A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';
const STICKY_KEYS_ENABLE = 'stickykeys-enable';
const GNOMESHELL_STARTED_MESSAGE_ID = 'f3ea493c22934e26811cd62abe8e203a';
let componentManager = null;
let panel = null;
@ -188,8 +190,6 @@ function _initializeUI() {
_startDate = new Date();
log('GNOME Shell started at ' + _startDate);
let perfModuleName = GLib.getenv("SHELL_PERF_MODULE");
if (perfModuleName) {
let perfOutput = GLib.getenv("SHELL_PERF_OUTPUT");
@ -213,6 +213,12 @@ function _initializeUI() {
if (screenShield) {
screenShield.lockIfWasLocked();
}
if (LoginManager.haveSystemd() && sessionMode.currentMode === 'user') {
GSystem.log_structured_print('GNOME Shell started at ' + _startDate,
['MESSAGE_ID=' + GNOMESHELL_STARTED_MESSAGE_ID]);
} else {
log('GNOME Shell started at ' + _startDate);
}
});
}