summaryrefslogtreecommitdiffstats
path: root/redhat/main
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2018-07-15 22:59:36 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2018-07-15 23:01:04 +0200
commit1794d3e6e26fac2595443f4ea855cb462b111ffd (patch)
treee397ce52b741f9b2639286b337d53860f8ef9dce /redhat/main
parenta84a6c177e6cba0f72c146d29283cefe92750aba (diff)
downloadtde-packaging-1794d3e6e26fac2595443f4ea855cb462b111ffd.tar.gz
tde-packaging-1794d3e6e26fac2595443f4ea855cb462b111ffd.zip
RPM: add TDM/TDE alternatives in YAST2 for opensuse >= 15.0
Diffstat (limited to 'redhat/main')
-rw-r--r--redhat/main/tdebase/tdebase-14.0.0.spec19
1 files changed, 19 insertions, 0 deletions
diff --git a/redhat/main/tdebase/tdebase-14.0.0.spec b/redhat/main/tdebase/tdebase-14.0.0.spec
index 36a25eea4..57984fe26 100644
--- a/redhat/main/tdebase/tdebase-14.0.0.spec
+++ b/redhat/main/tdebase/tdebase-14.0.0.spec
@@ -2293,6 +2293,10 @@ if [ -r "%{_sysconfdir}/init.d/xdm.tde" ]; then
cat "%{_sysconfdir}/init.d/xdm.tde" >"%{_sysconfdir}/init.d/xdm"
fi
+# openSUSE 15.0 alternatives
+%if 0%{?suse_version} >= 1500
+update-alternatives --install /usr/lib/X11/displaymanagers/default-displaymanager default-displaymanager /usr/lib/X11/displaymanagers/tdm 30 || :
+%endif
%posttrans -n trinity-tdm
# Make sure that TDM configuration files are now under '/etc/trinity/tdm'
@@ -2306,6 +2310,11 @@ fi
%make_session
%endif
+# openSUSE 15.0 alternatives
+%if 0%{?suse_version} >= 1500
+update-alternatives --remove default-displaymanager /usr/lib/X11/displaymanagers/tdm || :
+%endif
+
##########
%package -n trinity-tdm-devel
@@ -2903,11 +2912,21 @@ TDE will start, but many good defaults will not be set.
fndSession
%endif
+# openSUSE 15.0 alternatives
+%if 0%{?suse_version} >= 1500
+update-alternatives --install /usr/share/xsessions/default.desktop default-xsession.desktop /usr/share/xsessions/tde.desktop 30 || :
+%endif
+
%postun -n trinity-ksmserver
%if 0%{?mdkversion} || 0%{?mgaversion}
fndSession
%endif
+# openSUSE 15.0 alternatives
+%if 0%{?suse_version} >= 1500
+update-alternatives --remove default-xsession.desktop /usr/share/xsessions/tde.desktop || :
+%endif
+
##########
%package -n trinity-ksplash