Hi Ricardo,

On Fri, 22 Sep 2006, Ricardo Cruz wrote:

> I understand that you guys don't go with Yast-GTK by default (the 
> package selector should still be loved for a bit longer :)), but it 
> would be nice if you did the needed arrangement to /sbin/yast2, so if 
> people choose to install it and are using Gnome/XFCE, that frontend is 
> used.

Right ;)
 

> You need to start by adding a check_gtk function to 
> /usr/lib/YaST2/bin/yast2-funcs. Just copy check_qt and change the value 
> of Y2_QT to $plugindir/libpy2gtk.so.2 . You probably also want to rename 
> that variable. ;)
> 
> The /sbin/yast2 on factory is probably different than the one from 10.1, 
> since that one is ugly and there is even an indication that reads "TODO: 
> (...) refactor after release". In any case, one just needs to search for 
> "qt" and hack there. Test it well to make sure it fallbacks nicely.
> 
>  10.1 changes would be like:
> - if [ -z "$DISPLAY" ] || ! check_qt ; then
> + if [ -z "$DISPLAY" ] || (! check_qt && ! check_gtk); then
> 
> (...)
> 
> - $ybindir/y2base $module "$@" qt "$Y2_GEOMETRY" $Y2QT_ARGS
> + FRONTEND="qt"
> + if check_gtk && (echo $WINDOWMANAGER | grep -qi "gnome" || \
> +                           echo $WINDOWMANAGER | grep -qi "xfce" || \
> +                           ! check_qt) ; then
> +   FRONTEND="gtk"
> + fi
> + $ybindir/y2base $module "$@" $FRONTEND "$Y2_GEOMETRY" $Y2QT_ARGS

Would it be possible for you to grab the latests copy of yast rpms from 
Factory 
(http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse/src/)
 
and provide a patch to those packages that need to be changed via 
bugzilla?


Regards
        Christoph
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to