Accepting request 1162933 from GNOME:Factory

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

OBS-URL: https://build.opensuse.org/request/show/1162933
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-text-editor?expand=0&rev=13
This commit is contained in:
Ana Guerrero 2024-03-27 19:43:44 +00:00 committed by Git OBS Bridge
commit 9200a6cff1
3 changed files with 43 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>

View File

@ -23,6 +23,8 @@ Summary: GNOME Text Editor
License: GPL-3.0-or-later
URL: https://gitlab.gnome.org/GNOME/gnome-text-editor
Source: %{name}-%{version}.tar.zst
# PATCH-FIX-UPSTREAM data-desktop-disable-DBusActivatable.patch glgo#GNOME/gnome-text-editor#661 -- Session restore does not work if launched from Apps Menu
Patch1: data-desktop-disable-DBusActivatable.patch
BuildRequires: appstream-glib
BuildRequires: desktop-file-utils