Accepting request 1161733 from home:eroca

- Add data-desktop-disable-DBusActivatable.patch
  Fixes session restore in GNOME 46

OBS-URL: https://build.opensuse.org/request/show/1161733
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-text-editor?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2024-03-27 14:24:27 +00:00 committed by Git OBS Bridge
parent 228bc23b5c
commit 274530024a
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,35 @@
From 9a97fddb82824497e76d0e895cf40757f7d89727 Mon Sep 17 00:00:00 2001
From: Christian Hergert <chergert@redhat.com>
Date: Mon, 25 Mar 2024 11:13:44 -0700
Subject: [PATCH] data/desktop: disable DBusActivatable
We can end up starting up without going through session initialization if
we are activated via D-Bus alone.
An alternative, if this should become problematic, would be to delay all
start-up procsesing options until the first activation or open request is
received by the EditorApplication.
Fixes #661
---
data/org.gnome.TextEditor.desktop.in.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/data/org.gnome.TextEditor.desktop.in.in b/data/org.gnome.TextEditor.desktop.in.in
index d7516185..2ac72a38 100644
--- a/data/org.gnome.TextEditor.desktop.in.in
+++ b/data/org.gnome.TextEditor.desktop.in.in
@@ -1,7 +1,9 @@
[Desktop Entry]
Categories=GNOME;GTK;Utility;TextEditor;
Keywords=write;notepad;
-DBusActivatable=true
+# Not activatable because we want to force ourself through the startup
+# options processing for session-state/etc. See #661.
+DBusActivatable=false
Exec=gnome-text-editor %U
MimeType=text/plain;application/x-zerosize;
Name=Text Editor
--
GitLab

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 26 12:10:58 UTC 2024 - Elisei Roca <eroca@suse.com>
- Add data-desktop-disable-DBusActivatable.patch
Fixes session restore in GNOME 46
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Mar 16 09:26:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Sat Mar 16 09:26:36 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@ -23,6 +23,7 @@ Summary: GNOME Text Editor
License: GPL-3.0-or-later License: GPL-3.0-or-later
URL: https://gitlab.gnome.org/GNOME/gnome-text-editor URL: https://gitlab.gnome.org/GNOME/gnome-text-editor
Source: %{name}-%{version}.tar.zst Source: %{name}-%{version}.tar.zst
Patch1: data-desktop-disable-DBusActivatable.patch
BuildRequires: appstream-glib BuildRequires: appstream-glib
BuildRequires: desktop-file-utils BuildRequires: desktop-file-utils