OBS User unknown 2008-04-14 17:49:17 +00:00 committed by Git OBS Bridge
parent 7434b5ddc9
commit 02d6648448
3 changed files with 25 additions and 20 deletions

26
gnome
View File

@ -8,28 +8,22 @@
# https://bugzilla.novell.com/ # 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) 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) PICTURE_OPTIONS=$(gconftool-2 --get /desktop/gnome/background/picture_options 2>/dev/null)
if [ "$PICTURE_OPTIONS" != "none" -a \(\ if [ "$PICTURE_OPTIONS" != "none" -a \(\
"$OLD_WALLPAPER" != "${OLD_WALLPAPER#/usr/share/wallpapers/default}" -o ! -e "$OLD_WALLPAPER" \) ] ; then "$OLD_WALLPAPER" != "${OLD_WALLPAPER#/usr/share/wallpapers/default}" -o ! -e "$OLD_WALLPAPER" \) ] ; then
gconftool-2 -u /desktop/gnome/background/picture_filename
DIMENSIONS=$(xdpyinfo | sed -n 's/^ *dimensions: *\([^ ]*\) .*$/\1/p') gconftool-2 -u /desktop/gnome/background/picture_options
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
fi fi
function use_sled10_default { function use_sled10_default {
# do this only for SLED 10 # do this only for SLED *
([ -e /etc/SuSE-release ] && grep "SUSE Linux Enterprise Desktop 11" /etc/SuSE-release) || return ([ -e /etc/SuSE-release ] && grep "SUSE Linux Enterprise Desktop" /etc/SuSE-release) || return
# do this only one time # do this only one time
[ -e $HOME/.skel/sled10-run ] && return [ -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 fi
if [ $TRY_SLED10 -gt 0 ] ; then if [ $TRY_SLED10 -gt 0 ] ; then
use_sled11_default use_sled10_default
else else
touch ~/.skel/sled10-run touch ~/.skel/sled10-run
fi fi

View File

@ -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 Fri Apr 11 16:03:52 CEST 2008 - maw@suse.de

View File

@ -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 License: GPL v2 or later; LGPL v2.1 or later
Group: System/GUI/GNOME Group: System/GUI/GNOME
Version: 2.22.1.1 Version: 2.22.1.1
Release: 1 Release: 4
Summary: Session Tools for the GNOME 2.x Desktop Summary: Session Tools for the GNOME 2.x Desktop
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Source1: gnome 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 Summary: Session Tools for the GNOME 2.x Desktop
Group: System/GUI/GNOME Group: System/GUI/GNOME
Provides: %{name}-branding = %{version} 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: gnome-splash.png: Splash screen. Bottom 70 pixels are used for
#BRAND: "just starting" icons. This area is bright in the original #BRAND: "just starting" icons. This area is bright in the original
#BRAND: branding. Must be png or change system gconf key #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 %files lang -f %{name}-2.0.lang
%changelog %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 * Fri Apr 11 2008 maw@suse.de
- Update to version 2.22.1.1: - Update to version 2.22.1.1:
+ Migrate Trash files to the new trash location (and fix a bug + Migrate Trash files to the new trash location (and fix a bug