47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
From 100b2139c689e8e9ef8095cdd7da8eb016a3f53f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
Date: Thu, 13 Nov 2025 12:57:58 +0100
|
|
Subject: [PATCH 2/2] Reapply "main: Notify gnome-session when we're ready"
|
|
|
|
This reverts commit d697bdceaefeae49ad0e03df7352884899c3e14a.
|
|
---
|
|
js/ui/main.js | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/js/ui/main.js b/js/ui/main.js
|
|
index bb6d8f6723..7e1b84d694 100644
|
|
--- a/js/ui/main.js
|
|
+++ b/js/ui/main.js
|
|
@@ -330,6 +330,7 @@ async function _initializeUI() {
|
|
GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
|
|
Shell.util_sd_notify();
|
|
global.context.notify_ready();
|
|
+ _notifyGnomeSessionReady();
|
|
return GLib.SOURCE_REMOVE;
|
|
});
|
|
|
|
@@ -394,6 +395,20 @@ async function _initializeUI() {
|
|
});
|
|
}
|
|
|
|
+async function _notifyGnomeSessionReady() {
|
|
+ try {
|
|
+ let params = GLib.Variant.new('(ss)', ['org.gnome.Shell.desktop', '']);
|
|
+ await Gio.DBus.session.call(
|
|
+ 'org.gnome.SessionManager',
|
|
+ '/org/gnome/SessionManager',
|
|
+ 'org.gnome.SessionManager',
|
|
+ 'RegisterClient', params, null,
|
|
+ Gio.DBusCallFlags.NONE, -1, null);
|
|
+ } catch (e) {
|
|
+ log(`Error notifying gnome-session that we're ready: ${e.message}`);
|
|
+ }
|
|
+}
|
|
+
|
|
function _handleShowWelcomeScreen() {
|
|
const lastShownVersion = global.settings.get_string(WELCOME_DIALOG_LAST_SHOWN_VERSION);
|
|
if (Util.GNOMEversionCompare(WELCOME_DIALOG_LAST_TOUR_CHANGE, lastShownVersion) > 0) {
|
|
--
|
|
2.51.1
|
|
|