This commit is contained in:
parent
7434b5ddc9
commit
02d6648448
26
gnome
26
gnome
@ -8,28 +8,22 @@
|
||||
# https://bugzilla.novell.com/
|
||||
#
|
||||
|
||||
# If user still uses default wallpaper or old wallpaper image does not exist any more, update to default:
|
||||
# openSUSE <= 10.3 and SLED <= 10 modified the user GConf database to change background.
|
||||
# New openSUSE obsoletes this mechanism by branding and gnome-wp-list.
|
||||
# We still have to detect old modifications in the user database and remove them.
|
||||
#
|
||||
# This code may disappear after SLED 12:
|
||||
OLD_WALLPAPER=$(gconftool-2 --get /desktop/gnome/background/picture_filename 2>/dev/null)
|
||||
PICTURE_OPTIONS=$(gconftool-2 --get /desktop/gnome/background/picture_options 2>/dev/null)
|
||||
if [ "$PICTURE_OPTIONS" != "none" -a \(\
|
||||
"$OLD_WALLPAPER" != "${OLD_WALLPAPER#/usr/share/wallpapers/default}" -o ! -e "$OLD_WALLPAPER" \) ] ; then
|
||||
|
||||
DIMENSIONS=$(xdpyinfo | sed -n 's/^ *dimensions: *\([^ ]*\) .*$/\1/p')
|
||||
X=${DIMENSIONS%x*}
|
||||
Y=${DIMENSIONS#*x}
|
||||
# Select normal or wide angle wallpaper:
|
||||
GNOME_WALLPAPER="default-1600x1200.jpg"
|
||||
[ $((($X * 10) / $Y)) -ge 15 ] && GNOME_WALLPAPER="default-1920x1200.jpg"
|
||||
GNOME_WALLPAPER="/usr/share/wallpapers/"$GNOME_WALLPAPER
|
||||
if [ -e "$GNOME_WALLPAPER" -a "$GNOME_WALLPAPER" != "$OLD_WALLPAPER" ] ; then
|
||||
gconftool-2 -s /desktop/gnome/background/picture_filename --type string $GNOME_WALLPAPER
|
||||
gconftool-2 -s /desktop/gnome/background/picture_options --type string stretched
|
||||
fi
|
||||
gconftool-2 -u /desktop/gnome/background/picture_filename
|
||||
gconftool-2 -u /desktop/gnome/background/picture_options
|
||||
fi
|
||||
|
||||
function use_sled10_default {
|
||||
# do this only for SLED 10
|
||||
([ -e /etc/SuSE-release ] && grep "SUSE Linux Enterprise Desktop 11" /etc/SuSE-release) || return
|
||||
# do this only for SLED *
|
||||
([ -e /etc/SuSE-release ] && grep "SUSE Linux Enterprise Desktop" /etc/SuSE-release) || return
|
||||
|
||||
# do this only one time
|
||||
[ -e $HOME/.skel/sled10-run ] && return
|
||||
@ -63,7 +57,7 @@ if [ ! -e $HOME/.skel/gnome2-run ] || [ -e $HOME/.skel/gnome2-run-9.2 ] ; then
|
||||
fi
|
||||
|
||||
if [ $TRY_SLED10 -gt 0 ] ; then
|
||||
use_sled11_default
|
||||
use_sled10_default
|
||||
else
|
||||
touch ~/.skel/sled10-run
|
||||
fi
|
||||
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 14 18:55:56 CEST 2008 - sbrabec@suse.cz
|
||||
|
||||
- Removed /usr/bin/gnome code modifying default background in user
|
||||
gconf database (bnc#369924).
|
||||
- Use packageand form of branding supplement.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 11 16:03:52 CEST 2008 - maw@suse.de
|
||||
|
||||
|
@ -16,7 +16,7 @@ BuildRequires: control-center2-devel fdupes gnome-common gnome-desktop-devel gn
|
||||
License: GPL v2 or later; LGPL v2.1 or later
|
||||
Group: System/GUI/GNOME
|
||||
Version: 2.22.1.1
|
||||
Release: 1
|
||||
Release: 4
|
||||
Summary: Session Tools for the GNOME 2.x Desktop
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: gnome
|
||||
@ -88,7 +88,7 @@ License: GPL v2 or later; LGPL v2.1 or later
|
||||
Summary: Session Tools for the GNOME 2.x Desktop
|
||||
Group: System/GUI/GNOME
|
||||
Provides: %{name}-branding = %{version}
|
||||
Supplements: branding-upstream
|
||||
Supplements: packageand(branding-upstream:%{name})
|
||||
#BRAND: gnome-splash.png: Splash screen. Bottom 70 pixels are used for
|
||||
#BRAND: "just starting" icons. This area is bright in the original
|
||||
#BRAND: branding. Must be png or change system gconf key
|
||||
@ -181,6 +181,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%files lang -f %{name}-2.0.lang
|
||||
|
||||
%changelog
|
||||
* Mon Apr 14 2008 sbrabec@suse.cz
|
||||
- Removed /usr/bin/gnome code modifying default background in user
|
||||
gconf database (bnc#369924).
|
||||
- Use packageand form of branding supplement.
|
||||
* Fri Apr 11 2008 maw@suse.de
|
||||
- Update to version 2.22.1.1:
|
||||
+ Migrate Trash files to the new trash location (and fix a bug
|
||||
|
Loading…
Reference in New Issue
Block a user