[opensuse-factory] Yast2 Hardware on RC1
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything. -- 73 de Donn Washburn 307 Savoy Street Email:" n5xwb@comcast.net " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb@arrl.net " VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg BMW MOA #: 4146 - Ambassador " http://counter.li.org " #279316 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 26.10.2009 18:39, Donn Washburn wrote:
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything.
Looks like a bug, please report it to bugzilla.novell.com. (And attach yast logs, see http://en.opensuse.org/Bugs/YaST) -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Oct 26, 09 18:46:34 +0100, Ladislav Slezak wrote:
On 26.10.2009 18:39, Donn Washburn wrote:
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything.
Looks like a bug, please report it to bugzilla.novell.com. (And attach yast logs, see http://en.opensuse.org/Bugs/YaST)
Check out this one, is this related? https://bugzilla.novell.com/show_bug.cgi?id=550073 cheers, JW- -- o \ Juergen Weigert paint it green! __/ _=======.=======_ <V> | jw@suse.de back to ascii! __/ _---|____________\/ \ | 0911 74053-508 __/ (____/ /\ (/) | _____________________________/ _/ \_ vim:set sw=2 wm=8 SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 10/26/2009 01:19 PM, Juergen Weigert wrote:
On Oct 26, 09 18:46:34 +0100, Ladislav Slezak wrote:
On 26.10.2009 18:39, Donn Washburn wrote:
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything.
Looks like a bug, please report it to bugzilla.novell.com. (And attach yast logs, see http://en.opensuse.org/Bugs/YaST)
Check out this one, is this related? https://bugzilla.novell.com/show_bug.cgi?id=550073
cheers, JW-
The same except mine scanner is a USB HP 5200. What is neat is I know David Nelson in Austin, TX USA who wrote the original driver for this unit. He showed up at the Austin LUG and was riding his BMW Motorcycle and was wearing a big smile concerning the driver. That is why I bought the HP 5200. -- 73 de Donn Washburn 307 Savoy Street Email:" n5xwb@comcast.net " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb@arrl.net " VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg BMW MOA #: 4146 - Ambassador " http://counter.li.org " #279316 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Monday 26 October 2009 19:19:10 Juergen Weigert wrote:
On Oct 26, 09 18:46:34 +0100, Ladislav Slezak wrote:
On 26.10.2009 18:39, Donn Washburn wrote:
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything.
Check out this one, is this related? https://bugzilla.novell.com/show_bug.cgi?id=550073
Hehe, nice catch - you have successfully discovered a module without X-KDE- Substitute-UID=true in its .desktop file (that's why it does not prompt for root passwd). I guess that it is not the only module hit by this bug. The bug reported by Donn looks unrelated, though, as he launches scanner config from YaST menu and that one already has root privileges. hB. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello Katarina, On Oct 27 09:54 Katarina Machalkova wrote (shortened):
Hehe, nice catch - you have successfully discovered a module without X-KDE- Substitute-UID=true in its .desktop file (that's why it does not prompt for root passwd). I guess that it is not the only module hit by this bug.
I think something like for d in /usr/share/applications/YaST2/*.desktop ; \ do grep -q 'X-KDE-SubstituteUID=true' $d || echo $d ; \ done reports only the currently installed cases but it cannot report all possible cases. Instead someone with access to the current YaST SVN sources might be better to report really all current YaST modules where it is missing ;-) Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello, On Oct 26 18:46 Ladislav Slezak wrote (shortened):
On 26.10.2009 18:39, Donn Washburn wrote:
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything.
Looks like a bug, please report it to bugzilla.novell.com. (And attach yast logs, see http://en.opensuse.org/Bugs/YaST)
Donn, if you file a bug, please describe what exactly you did and what the YaST scanner module responds (preferably attach a screen shot of the YaST dialog where the most interesting message or error messge is shown or the last dialog before it exits or crashes). Your above terse description is useless for me because of course the YaST scanner module works for me with my particular scanners on my particular workstation. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello Katarina, On Oct 27 10:53 Johannes Meixner wrote (shortened):
Instead someone with access to the current YaST SVN sources might be better to report really all current YaST modules where it is missing ;-)
I did this and got those *.desktop files where 'X-KDE-SubstituteUID=true' is missing - of course there could be false-psitives listed here too: ./s390/src/clients/dump.desktop ./control-center/src/YaST-systemsettings.desktop ./control-center/src/YaST.desktop ./metapackage/src/yast2-metapackage-handler.desktop ./metapackage/src/kdeymp.desktop ./metapackage/src/yast2-metapackage-handler-ymu.desktop ./metapackage/src/x-suse-ymp.desktop ./doc/tutorials/tutorial-includes/sshd/t1-start-sshd.desktop ./apparmor/src/desktop/groups/apparmor.desktop ./apparmor/src/desktop/SD_delete_profile.desktop ./apparmor/src/desktop/SD_edit_profile.desktop ./apparmor/src/desktop/SD_add_profile.desktop ./apparmor/src/desktop/SD_logprof.desktop ./apparmor/src/desktop/SD_Reports.desktop ./apparmor/src/desktop/SD_control_panel.desktop ./apparmor/src/desktop/SD_genprof.desktop ./vm/src/virtualization.desktop ./tune/hwinfo/src/system_settings.desktop ./installation/src/config/release_notes.desktop ./dbus-server/src/services/namespace_service/doc/dbus_samba_export.desktop ./scanner/src/scanner.desktop ./pos-installation/config/pos_migration_assistent.desktop ./power-management/src/power-management.desktop ./registration/src/config/online_update_configuration.desktop ./registration/src/config/customer_center.desktop ./registration/src/config/suse_register.desktop Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 10/27/2009 04:58 AM, Johannes Meixner wrote:
Hello,
On Oct 26 18:46 Ladislav Slezak wrote (shortened):
On 26.10.2009 18:39, Donn Washburn wrote:
openSuSE's version of Yast2>Hardware>Scanner fails to work and if I try to edit (,ALT i) causes it to exit without writing anything.
Looks like a bug, please report it to bugzilla.novell.com. (And attach yast logs, see http://en.opensuse.org/Bugs/YaST)
Donn, if you file a bug, please describe what exactly you did and what the YaST scanner module responds (preferably attach a screen shot of the YaST dialog where the most interesting message or error messge is shown or the last dialog before it exits or crashes). Your above terse description is useless for me because of course the YaST scanner module works for me with my particular scanners on my particular workstation.
Kind Regards Johannes Meixner
Would love to report a bug. However, my email address changed and none of the bug systems seem to work due to the change. That is KDE, Amarok, openSuSE and Novell because they all want a confirmation from my old email address. As to the bug I was in a console tty1 as root trying to setup my scanner. So, yast2/Hardware/Scanner/(given some time)/<ALT>i. It exited and went to the main yast2 menu -- 73 de Donn Washburn 307 Savoy Street Email:" n5xwb@comcast.net " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb@arrl.net " VoIP via Gizmo: bmw_87kbike / via Skype: n5xwbg BMW MOA #: 4146 - Ambassador " http://counter.li.org " #279316 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello, On Oct 27 11:00 Donn Washburn wrote (shortened):
... I was in a console tty1 as root trying to setup my scanner. So, yast2/Hardware/Scanner/(given some time)/<ALT>i. It exited and went to the main yast2 menu
I.e. you don't use it in graphical mode but in text mode (ncurses) where <ALT>i is the keyboad shortcut to click the [Edit] button. When I do this on my workstation it does also not work. I get a nice terrifying red popup error message: --------------------------------------------------------- UI Syntax Error Invalid arguments for the PushButton widget Check the log file! [Close] --------------------------------------------------------- While this popup is shown there is at its current end in /var/log/YaST2/y2log ------------------------------------------------------------------------ [YCP] scanner/dialogs.ycp:548 OverviewDialog returns: `edit . . . [ui] YDialog.cc(setDefaultButton):305 Too many `opt(`default) PushButtons: [&Search] [libycp] Wizard.ycp:859 Widget id `back is not unique [libycp] Wizard.ycp:859 Invalid arguments for the PushButton widget: `PushButton (`id (`back), `opt (`key_F9), "&Cancel") [ui] YCPDialogParser.cc(parsePushButton):1405 THROW: Invalid arguments for the PushButton widget [ui] YCP_UI.cc(ReplaceWidget):830 CAUGHT: Invalid arguments for the PushButton widget [libycp] Wizard.ycp:859 UI::ReplaceWidget() failed: UI::ReplaceWidget( `id (`rep_abort), `PushButton (`id (`back), `opt (`key_F9), "&Cancel") ) [ui] YPushButton.cc(setFunctionKey):160 Guessing button role YOKButton for YPushButton "Close" at 0x87c2e30 from function key F10 ------------------------------------------------------------------------ Nevertheless the error is not fatal for me because when I [Close] the popup I can proceed and set up a scanner driver as usual. Regarding the root cause of the error: Because of the "Widget id `back is not unique" message I searched for '`back' in the source code in the YaST scanner module and found only one interesting spot in /usr/share/YaST2/include/scanner/dialogs.ycp ------------------------------------------------------------------------------- any SelectModelDialog() ... Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::BackButton(), Label::NextButton() ); // According to http://en.opensuse.org/YaST/Style_Guide#Configuration_Wizard // there is no longer a "abort" functionality which exits the whole module. // Instead this button is now named "Cancel" and its functionality is // to go back to the Overview dialog (i.e. what the "back" button would do) // because it reads "Cancel - Closes the window and returns to the overview." Wizard::SetAbortButton( `back, Label::CancelButton() ); // According to http://en.opensuse.org/YaST/Style_Guide#Configuration_Wizard // the button with the "back" functionality must be disabled // when it is the first dialog of a wizard stlye dialog sequence. Wizard::DisableBackButton(); -------------------------------------------------------------------------------
From my current point of view it looks very much like one more issue because of the expected mess with our unstable continuously changing guidelines, see https://bugzilla.novell.com/show_bug.cgi?id=440560#c5 and https://bugzilla.novell.com/show_bug.cgi?id=443684 and in particular read http://lists.opensuse.org/yast-devel/2009-01/msg00030.html
I cannot fix it because I cannot implement according to continuously changing guidelines. First we must have stable guidelines, then we can make a stable YaST base system according to the guidelines, finally I can implement a stable running YaST module based upon a stable YaST base system according to the stable guidelines. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hi, Johannes, I'm replying off the record and to you only as this is not of general interest to non-YaST folks.
Because of the "Widget id `back is not unique" message I searched for '`back' in the source code in the YaST scanner module and found only one interesting spot in /usr/share/YaST2/include/scanner/dialogs.ycp --------------------------------------------------------------------------- ---- any SelectModelDialog() ... Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::BackButton(), Label::NextButton() );
General rule of thumb: widget ID must be unique within one dialog i.e. two or more widgets must not share the same ID. Here you are creating widget with ID `back:
Wizard::SetAbortButton( `back, Label::CancelButton() );
Wizard::DisableBackButton(); The old back button is now disabled (greyed out), but it is still there => ID `back is not unique.
You'd better do Wizard::HideBackButton() here. Or use Wizard::OpenOKDialog() instead of Wizard::CreateDialog()- then you don't have to do any button relabelling yourself Or do { Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::CancelButton(), Label::OKButton() ); } in the beginning Freedom of choice :) hB. -- \\\\\ Katarina Machalkova \\\\\\\__o YaST developer __\\\\\\\'/_ & hedgehog painter -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Hello Katarina, On Oct 29 10:55 Katarina Machalkova wrote (shortened):
Hi, Johannes,
I'm replying off the record and to you only as this is not of general interest to non-YaST folks.
Just a personal hint: In such cases it could be helpful not to use "Cc : opensuse-factory@opensuse.org" ;-)
Wizard::SetContentsButtons( caption, contents, HELPS["select_model"]:"", Label::BackButton(), Label::NextButton() ); ... Here you are creating widget with ID `back:
No, I don't have "`back" in my code here and according to http://forgeftp.novell.com/yast/doc/SL11.1/modules/Wizard.html#SetContentsBu... the only result of Wizard::SetContentsButtons is a 'void' return value so that it must have happened somehow as an undocumented side effect or a leftover of whatever internal YaST magic ;-) Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany AG Nuernberg, HRB 16746, GF: Markus Rex -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (5)
-
Donn Washburn
-
Johannes Meixner
-
Juergen Weigert
-
Katarina Machalkova
-
Ladislav Slezak