https://bugzilla.novell.com/show_bug.cgi?id=207653 Summary: Make space for yast-gtk Product: openSUSE 10.2 Version: Alpha 4 plus Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: c0416111@alunos.dcc.fc.up.pt QAContact: jsrain@novell.com While the GTK+ frontend for Yast (yast-gtk) won't be shipped by default, it would be nice to add the necessary code to the /sbin/yast2 launching script to detect if it is installed and make use of it on the desktops where it makes sense, so that users could install yast-gtk if they choose to and have it being used. The needed changes follow. Add the following check_gtk function to /usr/lib/YaST2/bin/yast2-funcs to detect if yast-gtk is installed: --- 8< ------------------------ # # check if the gtk plugin and all necessary libaries are present # function check_gtk() { get_plugindir Y2_GTK=$plugindir/libpy2gtk.so.2 if [ -e "$Y2_GTK" ] ; then if ! `/usr/bin/ldd "$Y2_GTK" | grep --quiet "=> not found"` ; then return 0 # success fi echo "warning: the gtk frontend is installed but does not work" sleep 1 fi return 1 # failure } ------------------------ >8 --- Then make the following changes to /sbin/yast2: - 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 Since OpenSuse 10.2 seems to be going to ship the Novell's Gnome menu, it would also be nice to open a menu window with the Yast entries rather than using y2controlcenter (I believe this is possible). This requires a bit knowledge of that Gnome menu, so that's out of my scope... But it should be trivial to add. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |yast2-maintainers@suse.de |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 ------- Comment #1 from aj@novell.com 2006-09-23 12:27 MST ------- I suggest to use a sysconfig variable as well, the default could be "auto" which does the above - but also has values "qt" and "gtk" to override it. I do want to have the option to use the qt frontend under GNOME or the gtk frontend in KDE if both frontends are installed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 lslezak@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |ms@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 ms@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|ms@novell.com |jsrain@novell.com ------- Comment #2 from ms@novell.com 2006-09-25 03:37 MST ------- Sounds like a good idea. Maintainer of /sbin/yast2 and the yast2 functions in /usr/lib/YaST2/bin/yast2-funcs is jsrain -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 ------- Comment #3 from c0416111@alunos.dcc.fc.up.pt 2006-09-25 07:42 MST ------- Andreas, yeah that would probably be nice. In fact, I have already done some re-factorization to the /sbin/yast2 script (with that added) and the maintainers are checking it out. Meanwhile, I would suggest to ship 10.2 with this little change. Yast-GTK won't be shipped (at least installed by default) so only people that choose to install it, will use it. And just remove the package, if they don't like it. People in other environments than Gnome and XFCE can always test/use it by prepending (WINDOWMANAGER="gnome") at the yast2 script. The next Suse version could be shipped with an improved yast2 launching script with those features. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 jsrain@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #4 from jsrain@novell.com 2006-10-24 00:25 MST ------- Already done (for Beta1) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=207653 mvidner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Partner ID| |FATE 301083 ------- Comment #5 from mvidner@novell.com 2006-10-24 01:24 MST ------- man yast2: $HOME/.yast2/gui, /etc/YaST2/gui May contain a single word, "qt", "gtk", or "ncurses" to specify the preferred GUI for cases when DISPLAY is available. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com