save prefs when EULA is accepted to ensure that EULA is only shown once at

startup (#233645) Resolves: #233645
This commit is contained in:
Nils Philippsen 2007-04-04 13:14:03 +00:00
parent 68263a41aa
commit 088db6c176
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
--- xsane-0.994/src/xsane.c.showeulaonce 2007-02-25 23:21:06.000000000 +0100
+++ xsane-0.994/src/xsane.c 2007-04-04 15:03:33.000000000 +0200
@@ -5825,6 +5825,11 @@
DBG(DBG_info, "user did not accept eula, we abort\n");
return 1; /* User did not accept eula */
}
+ else
+ {
+ /* User did accept eula */
+ xsane_pref_save();
+ }
}
xsane_pref_restore_media();

View File

@ -3,13 +3,14 @@
Name: xsane Name: xsane
Summary: X Window System front-end for the SANE scanner interface Summary: X Window System front-end for the SANE scanner interface
Version: 0.994 Version: 0.994
Release: 1%{?dist} Release: 2%{?dist}
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
Source1: xsane.desktop Source1: xsane.desktop
Source2: xsane.conf.in Source2: xsane.conf.in
Patch0: xsane-0.90-htmlview.patch Patch0: xsane-0.90-htmlview.patch
Patch1: xsane-0.99-medium-definitions.patch Patch1: xsane-0.99-medium-definitions.patch
Patch2: xsane-0.92_gimp2.0.patch Patch2: xsane-0.92_gimp2.0.patch
Patch3: xsane-0.994-showeulaonce.patch
License: GPL License: GPL
URL: http://www.xsane.org/ URL: http://www.xsane.org/
Group: Applications/Multimedia Group: Applications/Multimedia
@ -45,6 +46,7 @@ installed to use this package.
%patch0 -p1 -b .htmlview %patch0 -p1 -b .htmlview
%patch1 -p1 -b .medium-definitions %patch1 -p1 -b .medium-definitions
%patch2 -p1 -b .gimp2.0 %patch2 -p1 -b .gimp2.0
%patch3 -p1 -b .showeulaonce
%build %build
%{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1} %{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1}
@ -116,6 +118,10 @@ if [ $1 = 0 ]; then
fi fi
%changelog %changelog
* Wed Apr 04 2007 Nils Philippsen <nphilipp@redhat.com> - 0.994-2
- save prefs when EULA is accepted to ensure that EULA is only shown once at
startup (#233645)
* Tue Apr 03 2007 Nils Philippsen <nphilipp@redhat.com> - 0.994-1 * Tue Apr 03 2007 Nils Philippsen <nphilipp@redhat.com> - 0.994-1
- version 0.994 (#235038) - version 0.994 (#235038)