profile.d/xdg.sh: don't call old kde4-config [release 1.1.3-2mamba;Sun Jan 12 2020]
This commit is contained in:
parent
317466121b
commit
1c6ab2222c
@ -1,17 +0,0 @@
|
||||
if test -z "$XDG_DATA_DIRS"; then
|
||||
XDG_DATA_DIRS="/usr/share:/usr/local/share"
|
||||
[ -e /usr/bin/kde4-config ] && KDE4_PREFIX=`/usr/bin/kde4-config --prefix`
|
||||
if [ "$KDE4_PREFIX" ]; then
|
||||
if [ "${DESKTOP_SESSION:0:3}" = "kde" ]; then
|
||||
XDG_DATA_DIRS="$KDE4_PREFIX/share:$XDG_DATA_DIRS"
|
||||
else
|
||||
XDG_DATA_DIRS="$XDG_DATA_DIRS:$KDE4_PREFIX/share"
|
||||
fi
|
||||
fi
|
||||
[ -e /opt/kde3/share/applications ] && XDG_DATA_DIRS="$XDG_DATA_DIRS:/opt/kde3/share"
|
||||
export XDG_DATA_DIRS
|
||||
fi
|
||||
if [ "$DESKTOP_SESSION" = "gnome" ]; then
|
||||
XDG_MENU_PREFIX="gnome-"
|
||||
export XDG_MENU_PREFIX
|
||||
fi
|
10
xdg-utils-1.1.3-profile.sh
Normal file
10
xdg-utils-1.1.3-profile.sh
Normal file
@ -0,0 +1,10 @@
|
||||
if test -z "$XDG_DATA_DIRS"; then
|
||||
XDG_DATA_DIRS="/usr/share:/usr/local/share"
|
||||
[ -e /opt/kde/share/applications ] && XDG_DATA_DIRS="$XDG_DATA_DIRS:/opt/kde/share"
|
||||
[ -e /opt/kde3/share/applications ] && XDG_DATA_DIRS="$XDG_DATA_DIRS:/opt/kde3/share"
|
||||
export XDG_DATA_DIRS
|
||||
fi
|
||||
if [ "$DESKTOP_SESSION" = "gnome" ]; then
|
||||
XDG_MENU_PREFIX="gnome-"
|
||||
export XDG_MENU_PREFIX
|
||||
fi
|
@ -1,7 +1,7 @@
|
||||
%define pkgver %(echo %version | tr _ -)
|
||||
Name: xdg-utils
|
||||
Version: 1.1.3
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Scripts providing desktop integration functions for any Free Desktop
|
||||
Group: System/Configuration
|
||||
Vendor: openmamba
|
||||
@ -10,7 +10,7 @@ Packager: Aleph0 <aleph0@openmamba.org>
|
||||
URL: http://portland.freedesktop.org/
|
||||
Source: http://portland.freedesktop.org/download/xdg-utils-%{version}.tar.gz
|
||||
#http://portland.freedesktop.org/download/xdg-utils-%{pkgver}.tar.gz
|
||||
Source1: xdg-profile.sh
|
||||
Source1: xdg-utils-1.1.3-profile.sh
|
||||
Patch0: xdg-utils-1.1.1-openmamba-default-browsers.patch
|
||||
License: MIT
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
@ -74,6 +74,9 @@ install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/xdg.sh
|
||||
#README RELEASE_NOTES TODO
|
||||
|
||||
%changelog
|
||||
* Sun Jan 12 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.3-2mamba
|
||||
- profile.d/xdg.sh: don't call old kde4-config
|
||||
|
||||
* Fri May 25 2018 Automatic Build System <autodist@mambasoft.it> 1.1.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user