Hey there,

 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.

 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

 Now with the Novell's Gnome menu, you should be able to open a window with 
the Yast setup tools, rather than using y2controlcenter. You are probably 
already doing this, no?

 It would also be cool if you could ship with a yast-gtk rpm somewhere in the 
cds, so people could install it easy.

Cheers,
 Ricardo

-- 
If I had a plantation in Georgia and a home in Hell, I'd sell the
plantation and go home.
                -- Eugene P. Gallagher
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to