 |
|
 |
|
Next: Bug#223929: dpkg-reconfigure should write a file
|
| Author |
Message |
External

Since: Sep 01, 2003 Posts: 33
|
(Msg. 1) Posted: Mon Apr 05, 2004 9:40 am
Post subject: Bug#242216: xserver-xfree86.config hardcodes different defaults for display selection method on different priorities Archived from groups: linux>debian>bugs>dist, others (more info?)
|
|
|
Package: xserver-xfree86
Version: 4.3.0-7
Severity: normal
Tags: patch
xserver-xfree86.config contains the following code:
....
if [ "$RET" = "true" ]; then
db_subst xserver-xfree86/config/monitor/selection-method choices "Medium, Advanced"
db_subst xserver-xfree86/config/monitor/selection-method default "Medium"
else # not an LCD
db_subst xserver-xfree86/config/monitor/selection-method choices "Simple, Medium, Advanced"
db_subst xserver-xfree86/config/monitor/selection-method default "Simple"
fi
auto_answer db_input "$(priority_ceil $PRIORITY)" xserver-xfree86/config/monitor/selection-method "Advanced"
....
Thus default answer for xserver-xfree86/config/monitor/selection-method
is "Simple" or "Medium" (which is good for non-technical users), but if
debconf actually asks the question, the default shown answer is
hardcoded to "Advanced". Since users tend to accept all defaults they
see (even after a help screen was shown describing what the selections
mean), too often they select this default and are faced with questions
about frequences they can't understand. And even can't go back at that
point.
So it seems better to show a "silly-safe" choise by default. I.e. the
same as is set in the case when question is not asked.
--- xserver-xfree86.config.orig 2004-04-05 16:02:07.000000000 +0400
+++ xserver-xfree86.config 2004-04-05 16:06:21.000000000 +0400
@@ -1568,13 +1568,14 @@
MONITOR_IS_LCD="$RET"
if [ "$RET" = "true" ]; then
db_subst xserver-xfree86/config/monitor/selection-method choices "Medium, Advanced"
- db_subst xserver-xfree86/config/monitor/selection-method default "Medium"
+ DEFAULT="Medium"
else # not an LCD
db_subst xserver-xfree86/config/monitor/selection-method choices "Simple, Medium, Advanced"
- db_subst xserver-xfree86/config/monitor/selection-method default "Simple"
+ DEFAULT="Simple"
fi
-auto_answer db_input "$(priority_ceil $PRIORITY)" xserver-xfree86/config/monitor/selection-method "Advanced"
+db_subst xserver-xfree86/config/monitor/selection-method default $DEFAULT
+auto_answer db_input "$(priority_ceil $PRIORITY)" xserver-xfree86/config/monitor/selection-method $DEFAULT
db_get xserver-xfree86/config/monitor/selection-method
case "$RET" in
--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST RemoveThis @lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster RemoveThis @lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Sep 01, 2003 Posts: 33
|
(Msg. 2) Posted: Tue Apr 06, 2004 8:20 am
Post subject: Bug#242216: xserver-xfree86.config hardcodes different defaults for display selection method on different priorities [Login to view extended thread Info.] Archived from groups: linux>debian>maint>x (more info?)
|
|
|
> Your patch is incomplete; there is no auto_answer counterpart for the
> "Simple" and "Medium" monitor selection methods.
Could you please explain what you mean?
I've looked at the code of auto_answer, and I fail to find what else is
needed to change default displayed answer.
auto_answer routine seems do put it's fourth argiment to debconf database
using db_set. So in current code it puts "Advanced" there, in my patch it
will put $DEFAULT there instead. I fail to understand why this is not
enough.
--
To UNSUBSCRIBE, email to debian-x-REQUEST.TakeThisOut@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.TakeThisOut@lists.debian.org |
|
| Back to top |
|
 |  |
External

Since: Jan 18, 2007 Posts: 210
|
(Msg. 3) Posted: Tue Jul 24, 2007 9:10 am
Post subject: Bug#242216: xserver-xfree86.config hardcodes different defaults for display selection method on different priorities [Login to view extended thread Info.] Archived from groups: linux>debian>bugs>dist, others (more info?)
|
|
|
tags 242216 - patch
reassign 242216 xserver-xorg
kthxbye
On Thu, Apr 8, 2004 at 11:29:46 +0400, Nikita V. Youshchenko wrote:
> > > Could you please explain what you mean?
> >
> > Sure.
> > ...
> > I am referring to the large case statement at line 990 of
> > xserver-xfree86.config.in[1].
> >
> > The Simple) and Medium) cases have no auto-answer logic. Your patch
> > should not be applied until they do.
>
> I'm not sure I understand why auto_answer logic is needed there, but anyway
> the attached patch is probably what you wish.
>
Hi,
is this bug still a problem for you with the current xserver-xorg
package configuration?
Cheers,
Julien
--
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST.RemoveThis@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster.RemoveThis@lists.debian.org |
|
| Back to top |
|
 |  |
| Related Topics: | Installing xserver-xfree86 fails - Hi, I am trying to get Xfree86 installed on an Itanium HP i2000. When I issue apt-get install xserver-xfree86 I get th...
unhealthy xserver-xfree86 4.3.0.dfsg.1-5 - I did a dist-upgrade yesterday on Debian/unstable and found that the X server didn't work at all. It appeared to get..
Xserver - Ich habe eben Suse 10.1 x64 installiert. Da ist mir ein Malheur passiert. Die Bildauflösung habe ich nicht geprüft, wei...
[gentoo-user] glib-config and gtk-config point to version .. - I just started working on a glib/gtk application. I have glib-2.6.4 and gtk-2.6.7 installed (plus glib and gtk version...
xserver not working - Hi, Wow, what a response! I will post the logs as soon as I have inst. the other stuff. I just noticed I had not ins...
Kein XServer für - Hi@all, folgendes Problem: Nach der Neuinstallation von SuSE 9.2 Professional und KDE 3.4 kann ich für "root"... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|