public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Takao Fujiwara <tfujiwar@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ibus] autotool: Change default session to mutter from gnome in desktop-testing
Date: Sun, 31 May 2026 02:07:34 GMT	[thread overview]
Message-ID: <178019325432.1.2932797397685682104.rpms-ibus-c62f730d73dc@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/ibus
Branch : autotool
Commit : c62f730d73dc33c2739b2a5e00ebffdb71978529
Author : Takao Fujiwara <tfujiwar@redhat.com>
Date   : 2021-03-20T11:50:31+09:00
Stats  : +92/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/ibus/c/c62f730d73dc33c2739b2a5e00ebffdb71978529?branch=autotool

Log:
Change default session to mutter from gnome in desktop-testing

---
diff --git a/ibus-HEAD.patch b/ibus-HEAD.patch
index e69de29..c505db4 100644
--- a/ibus-HEAD.patch
+++ b/ibus-HEAD.patch
@@ -0,0 +1,87 @@
+From ec6b251149bb5ca79c73f7bdbded55d72a44b3a1 Mon Sep 17 00:00:00 2001
+From: fujiwarat <takao.fujiwara1@gmail.com>
+Date: Sat, 20 Mar 2021 11:40:50 +0900
+Subject: [PATCH] src/tests: Change default session gnome-session to mutter
+
+gnome-shell 40 now shows the overview mode by login and
+gnome-desktop-testing-runner cannot get the focus.
+Now the default session is changed to mutter from gnome-session.
+The default may be changed to twm if mutter also will be changed
+not to accept the application focus in the future.
+
+BUG=https://discourse.gnome.org/t/focus-on-autostart-application-by-login/5863
+---
+ src/tests/ibus-desktop-testing-runner.in | 22 ++++++++++++++++++----
+ 1 file changed, 18 insertions(+), 4 deletions(-)
+
+diff --git a/src/tests/ibus-desktop-testing-runner.in b/src/tests/ibus-desktop-testing-runner.in
+index 4232c549..92ae14ba 100755
+--- a/src/tests/ibus-desktop-testing-runner.in
++++ b/src/tests/ibus-desktop-testing-runner.in
+@@ -4,7 +4,7 @@
+ #
+ # ibus - The Input Bus
+ #
+-# Copyright (c) 2018-2020 Takao Fujiwara <takao.fujiwara1@gmail.com>
++# Copyright (c) 2018-2021 Takao Fujiwara <takao.fujiwara1@gmail.com>
+ # Copyright (c) 2018 Red Hat, Inc.
+ #
+ # This program is free software; you can redistribute it and/or modify
+@@ -36,7 +36,7 @@
+ 
+ 
+ PROGNAME=`basename $0`
+-VERSION=0.1
++VERSION=0.2
+ DISPLAY=:99.0
+ BUILDDIR="."
+ SRCDIR="."
+@@ -44,7 +44,7 @@ TEST_LOG="test-suite.log"
+ TEST_LOG_STDOUT=0
+ RESULT_LOG=""
+ HAVE_GRAPHICS=1
+-DESKTOP_COMMAND="dbus-launch --exit-with-session gnome-session"
++DESKTOP_COMMAND="dbus-launch --exit-with-session mutter"
+ PID_XORG=0
+ PID_GNOME_SESSION=0
+ TESTING_RUNNER="default"
+@@ -80,7 +80,9 @@ usage()
+ "-b, --builddir=BUILDDIR          Set the BUILDDIR\n"                          \
+ "-s, --srcdir=SOURCEDIR           Set the SOURCEDIR\n"                         \
+ "-c, --no-graphics                Use Xvfb instead of Xorg\n"                  \
+-"-d, --desktop=DESKTOP            Run DESTKTOP. The default is gnome-session\n" \
++"-d, --desktop=DESKTOP            Run DESTKTOP. The default is mutter.\n"      \
++"                                 Suffix '-with-dbus' can run DESKTOP with dbus session." \
++"                                 E.g. --desktop=gnome-session-with-dbus"      \
+ "-t, --tests=\"TESTS...\"           Run TESTS programs which is separated by space\n" \
+ "-r, --runner=RUNNER              Run TESTS programs with a test RUNNER.\n"    \
+ "                                 RUNNDER = gnome or default.\n"               \
+@@ -115,6 +117,12 @@ parse_args()
+         * )                  usage; exit 1;;
+         esac
+     done
++    DL='$'
++    HAS_DBUS_SUFFIX=`echo "$DESKTOP_COMMAND" | grep "\-with\-dbus$DL"`
++    if [ x"$HAS_DBUS_SUFFIX" != x ] ; then
++        DESKTOP_COMMAND=`echo "$DESKTOP_COMMAND" | sed -e 's/-with-dbus$//'`
++        DESKTOP_COMMAND="dbus-launch --exit-with-session $DESKTOP_COMMAND"
++    fi
+ }
+ 
+ init_desktop()
+@@ -221,6 +229,12 @@ run_desktop()
+     if [ x"$HAS_GNOME" = x ] ; then
+         ibus-daemon --daemonize --verbose
+         sleep 3
++    else
++        # Disable Tour dialog to get focus
++        V=`gsettings get org.gnome.shell welcome-dialog-last-shown-version`
++        if [ x"$V" = x ] ; then
++            gsettings set org.gnome.shell welcome-dialog-last-shown-version '100'
++        fi
+     fi
+ }
+ 
+-- 
+2.28.0
+

diff --git a/ibus.spec b/ibus.spec
index 89b843b..a0ae0e5 100644
--- a/ibus.spec
+++ b/ibus.spec
@@ -38,7 +38,7 @@
 
 Name:           ibus
 Version:        1.5.24
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Intelligent Input Bus for Linux OS
 License:        LGPLv2+
 URL:            https://github.com/ibus/%name/wiki
@@ -46,6 +46,7 @@ Source0:        https://github.com/ibus/%name/releases/download/%{version}/%{nam
 Source1:        %{name}-xinput
 Source2:        %{name}.conf.5
 # Patch0:         %%{name}-HEAD.patch
+Patch0:         %{name}-HEAD.patch
 # Under testing #1349148 #1385349 #1350291 #1406699 #1432252 #1601577
 Patch1:         %{name}-1385349-segv-bus-proxy.patch
 
@@ -487,6 +488,9 @@ dconf update || :
 %{_datadir}/installed-tests/ibus
 
 %changelog
+* Sat Mar 20 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.24-2
+- Change default session to mutter from gnome in desktop-testing
+
 * Mon Feb 22 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.5.24-1
 - Bump to 1.5.24
 

                 reply	other threads:[~2026-05-31  2:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178019325432.1.2932797397685682104.rpms-ibus-c62f730d73dc@fedoraproject.org \
    --to=tfujiwar@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox