Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mate-session-manager for 
openSUSE:Factory checked in at 2022-08-20 20:28:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mate-session-manager (Old)
 and      /work/SRC/openSUSE:Factory/.mate-session-manager.new.2083 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mate-session-manager"

Sat Aug 20 20:28:51 2022 rev:34 rq:998205 version:1.26.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/mate-session-manager/mate-session-manager.changes    
    2021-08-26 23:15:18.556241887 +0200
+++ 
/work/SRC/openSUSE:Factory/.mate-session-manager.new.2083/mate-session-manager.changes
      2022-08-20 20:29:10.845438819 +0200
@@ -1,0 +2,11 @@
+Thu Jun 30 14:53:34 UTC 2022 - Mike Gabriel <[email protected]>
+
+- Provide xinitrc.d script 55mate-session_materc.sh, adopted from
+  Debian/Ubuntu. This provides support for MATE-specific tweaking of the
+  Application menu such as practiced in Ubuntu MATE intensively.
+- Provide xinitrc.d script 99mate-environment.sh, adopted from Debian/Ubuntu.
+  This script allows us to finalize MATE session startup. Here we e.g.
+  prepare loading the canberra GTK module and tweak UI stuff. There
+  are likely more things to come.
+
+-------------------------------------------------------------------

New:
----
  55mate-session_materc.sh
  99mate-environment.sh

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

Other differences:
------------------
++++++ mate-session-manager.spec ++++++
--- /var/tmp/diff_new_pack.FEp8hq/_old  2022-08-20 20:29:11.305440095 +0200
+++ /var/tmp/diff_new_pack.FEp8hq/_new  2022-08-20 20:29:11.309440106 +0200
@@ -30,6 +30,11 @@
 Source1:        mate-session-manager-upstream-mate_defaults.conf
 # Some documentation for people writing branding packages, shipped in the 
branding-upstream package.
 Source2:        README.Gsettings-overrides
+# xinitrc.d/ script that add /usr/share/mate and /usr/local/share to 
XDG_DATA_DIRS
+Source3:        55mate-session_materc.sh
+# xinitrc.d/ script that finalizes everything before the MATE session starts 
(such as
+# preparing to load the canberra-gtk-module and applying a clutter tweak).
+Source4:        99mate-environment.sh
 # PATCH-FIX-OPENSUSE mate-session-manager-qt-5.7-styleoverride.patch 
[email protected] -- On Qt 5.7+ use Gtk2 Platform Theme.
 Patch0:         mate-session-manager-qt-5.7-styleoverride.patch
 BuildRequires:  hicolor-icon-theme
@@ -95,6 +100,8 @@
 
 cp -a %{SOURCE2} .
 cp -a %{SOURCE1} mate_defaults.conf
+cp -a %{SOURCE3} .
+cp -a %{SOURCE4} .
 
 %build
 NOCONFIGURE=1 mate-autogen
@@ -110,6 +117,10 @@
 %make_install
 install -Dpm 0644 mate_defaults.conf \
   %{buildroot}%{_sysconfdir}/mate_defaults.conf
+install -Dpm 0755 55mate-session_materc.sh \
+  %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/55mate-session_materc.sh
+install -Dpm 0755 99mate-environment.sh \
+  %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/99mate-environment.sh
 
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
 touch %{buildroot}%{_sysconfdir}/alternatives/default-xsession.desktop
@@ -134,6 +145,10 @@
 %license COPYING
 %doc NEWS README
 %ghost %{_sysconfdir}/alternatives/default-xsession.desktop
+%dir %{_sysconfdir}/X11/xinit
+%dir %{_sysconfdir}/X11/xinit/xinitrc.d
+%config %{_sysconfdir}/X11/xinit/xinitrc.d/55mate-session_materc.sh
+%config %{_sysconfdir}/X11/xinit/xinitrc.d/99mate-environment.sh
 %{_bindir}/mate-*
 %{_datadir}/%{name}/
 %{_datadir}/xsessions/*.desktop

++++++ 55mate-session_materc.sh ++++++
#!/bin/sh

# to be sourced

# If we are running the MATE session, source ~/.materc

if [ -z "${STARTUP}" ] && [ -n "${WINDOWMANAGER}" ]; then
    # We are likely in a display-manager running on a distro such as openSUSE...
    STARTUP="${WINDOWMANAGER}"
fi

BASESTARTUP=${STARTUP%% *}
BASESTARTUP=${BASESTARTUP##*/}
if [ "$BASESTARTUP" = x-session-manager ]; then
    BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
fi
case "$BASESTARTUP" in
  mate-session*)
    MATERC=$HOME/.materc
    if [ -r "$MATERC" ]; then
      . "$MATERC"
    fi
    # We prepend /usr/share/mate since its defaults.list actually points
    # to /etc so it is configurable.
    if [ -z "$XDG_DATA_DIRS" ]; then
      XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
    else
      XDG_DATA_DIRS=/usr/share/mate:"$XDG_DATA_DIRS"
    fi
    export XDG_DATA_DIRS
    ;;
esac

++++++ 99mate-environment.sh ++++++
# This file is sourced by Xsession(5), not executed.

# Copyright (C) 2014-2015, Martin Wimpress <[email protected]>
# Copyright (C) 2015, Mike Gabriel <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# .
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# .
# On Debian systems, the complete text of the GNU General Public
# License version 2 can be found in "/usr/share/common-licenses/GPL-2".


if [ "x$DESKTOP_SESSION" = "xmate" ] || [ "x$XDG_SESSION_DESKTOP" = "xmate" ]; 
then
    if [ -z "$GTK_MODULES" ] ; then
        GTK_MODULES="canberra-gtk-module"
    else
        GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
    fi
    export GTK_MODULES

    # Disable GTK3 overlay scrollbars
    export GTK_OVERLAY_SCROLLING=0

    # Sadly this environment variable can cause applications to segfault.
    # For example:
    #  - Telegram doesn't work with QT_STYLE_OVERRIDE=gtk
    # export QT_STYLE_OVERRIDE=gtk

    # Workaround clutter issue (LP: #1462445)
    export CLUTTER_BACKEND=x11
fi

Reply via email to