Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fcitx5 for openSUSE:Factory checked 
in at 2025-09-17 16:44:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fcitx5 (Old)
 and      /work/SRC/openSUSE:Factory/.fcitx5.new.27445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fcitx5"

Wed Sep 17 16:44:38 2025 rev:24 rq:1305345 version:5.1.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/fcitx5/fcitx5.changes    2025-08-19 
16:44:46.331497650 +0200
+++ /work/SRC/openSUSE:Factory/.fcitx5.new.27445/fcitx5.changes 2025-09-17 
16:45:29.690056154 +0200
@@ -1,0 +2,8 @@
+Mon Sep 15 13:40:18 UTC 2025 - Fuminobu Takeyama <[email protected]>
+
+- Add an initial setup feature for Plasma Wayland
+  * enables Fcitx5 as the active virtual keyboard on the first login,
+    allowing users to input text using Fcitx5 without manual configuration
+  * Fix boo#1084804, boo#1246423
+
+-------------------------------------------------------------------

New:
----
  20-fcitx5-plasma-setup.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ fcitx5.spec ++++++
--- /var/tmp/diff_new_pack.uwHlCO/_old  2025-09-17 16:45:30.298081659 +0200
+++ /var/tmp/diff_new_pack.uwHlCO/_new  2025-09-17 16:45:30.302081827 +0200
@@ -34,6 +34,7 @@
 Source3:        xim.d-fcitx5
 Source4:        macros.fcitx5
 Source5:        fcitx5-autostart
+Source6:        20-fcitx5-plasma-setup.sh
 Source102:      fcitx5.service
 Patch1:         fcitx5-gcc7.patch
 Patch2:         fcitx5-5.0.13-memfd.patch
@@ -172,6 +173,7 @@
 popd
 
 install -m 755 %{SOURCE5} %{buildroot}%{_bindir}/fcitx5-autostart
+install -D -m 0755 %{SOURCE6} 
%{buildroot}%{_distconfdir}/xdg/plasma-workspace/env/20-fcitx5-plasma-setup.sh
 install -D -m 0644 %{SOURCE102} %{buildroot}%{_userunitdir}/fcitx5.service
 
 # install icons
@@ -238,6 +240,9 @@
 %dir %{_sysconfdir}/xdg/Xwayland-session.d
 %{_sysconfdir}/xdg/Xwayland-session.d/20-fcitx-x11
 %{_sysconfdir}/xdg/autostart/org.fcitx.Fcitx5.desktop
+%dir %{_distconfdir}/xdg/plasma-workspace
+%dir %{_distconfdir}/xdg/plasma-workspace/env
+%{_distconfdir}/xdg/plasma-workspace/env/20-fcitx5-plasma-setup.sh
 %{_bindir}/fcitx5
 %{_bindir}/fcitx5-configtool
 %{_bindir}/fcitx5-remote

++++++ 20-fcitx5-plasma-setup.sh ++++++
#!/bin/sh

#
# If the virtual keyboard of Plasma Wayland has not been configured,
# configure it for this IM.
#

im_name="fcitx"
desktop_file="/usr/share/applications/org.fcitx.Fcitx5.desktop"

# Do nothing for X11 session
if [ "$XDG_SESSION_TYPE" != "wayland" ]; then
    exit 0
fi

# Do nothing if kreadconfig6 is not available
if ! command -v kreadconfig6 >/dev/null 2>&1; then
    exit 0
fi

# check current virtual keyboard
current_im=$(kreadconfig6 --file kwinrc --group Wayland --key InputMethod)

#
# initialize virtual keyboard if not configured yet
#

# check if $XDG_CONFIG_HOME/plasma_wayland_input_method_configured does not 
exist
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}"
stamp_file="$config_dir/plasma_wayland_input_method_configured"
if [ ! -e "$stamp_file" ]; then
    mkdir -p "$config_dir"
    echo "$im_name" > "$stamp_file"

    # check current virtual keyboard is None
    if [ -z "$current_im" ]; then
        # The virtual keyboard is not configured
        echo "$0 is configuring the virtual keyboard for IBus."
        current_im=$desktop_file
        kwriteconfig6 --file kwinrc --group Wayland --key InputMethod 
$current_im
    else
        echo "$0 detected a virtual keyboard configured."
    fi
fi

#
# export environment variables for applications running on Xwayland
#
if [ "$current_im" = "$desktop_file" ]; then
    # do not override Qt IM module settings
    if [ -z "$QT_IM_MODULE" ] && [ -z "$QT_IM_MODULES" ]; then
        echo "$0 is setting QT_IM_MODULES for $im_name."
        export QT_IM_MODULES="wayland;$im_name"
    fi
    # do not override xim settings
    if [ -z "$XMODIFIERS" ]; then
        echo "$0 is setting XMODIFIERS for $im_name."
        export XMODIFIERS="@im=$im_name"
    fi
fi

Reply via email to