ACC SHELL

Path : /usr/share/YaST2/clients/
File Upload :
Current File : //usr/share/YaST2/clients/inst_x11.ycp

/**************
FILE          : inst_x11.ycp
***************
PROJECT       : YaST2
              :
AUTHOR        : Marcus Schäfer <ms@suse.de>
              :
BELONGS TO    : YaST2
              : (X11 integration part using SaX2/ISaX)
              :
DESCRIPTION   : The installation workflow will call inst_x11
              : This module will check if we have X11 installed
              : and import the main X11 module (x11.ycp)
              :
STATUS        : Development
 *
 * $Id: inst_x11.ycp 22839 2005-03-29 12:24:31Z jsrain $
 */

{
    import "X11Version";
    import "Mode";
    import "Installation";
    import "Arch";
    import "GetInstArgs";

    boolean next = GetInstArgs::enable_next();
    boolean back = GetInstArgs::enable_back();

    //==========================================
    // Check if X11 is installed
    //------------------------------------------
	if (
		X11Version::have_x11() &&
		Installation::x11_setup_needed () && Arch::x11_setup_needed ()
	) {
		any ret = WFM::CallFunction ("x11", [back, next]);
		return ret;
	} else {
		return `next;
	}
}

ACC SHELL 2018