* Raymond Wooninck <[email protected]> [2015-01-26 11:44]:
> The current methodology around starting the Display Manager is a script that 
> is provided by the XDM package and a single systemd unit file. The script is 
> doing all kind of stuff it seems, but one of them is reading a sysconfig file 
> to see which DM should be started. 
> 
> Most of our Display Managers (SDDM, GDM, Lightdm, etc) already have proper 
> systemd support and provide their own unit files, but we are removing those 
> in 
> order to keep the above mentioned methodology working. 
> 
> My proposal would be to drop the current method (including the script and 
> special unit files from the xdm package) and to utilize the proper systemd 
> support from the installed Display Manager itself. 
> 
> One way (the easiest one) would be that an user can only have a single 
> Display 
> Manager installed and the are mutually exclusive. The installation and 
> removal 
> of the unit files can then be done within the DM package itself. The downside 
> would be that the user can not easily choose which DM to use. 

I think that would be the worst possible option, having
conflicting packages is a hassle and should be avoided at all
cost, it leads to problems when people install more than one DE,
makes switching between DM a pain.

> The other way (which would be more comparable to the current method) is that 
> the Display Managers are providing the proper unit files, but the 
> installation 
> of them is done through YaST.  Like now, through the sysconfig editor, you 
> can 
> select which Display Manager should be used and this would install the 
> corresponding unit files. 
> 
> The changes requires in YaST would be that the user can only select from a 
> list of Display Managers. Once a DM is selected, YaST should validate if the 
> corresponding unit file is present. If the unit file is not present, YaST 
> should offer to install the package. After this YaST should install and 
> enable 
> the corresponding unit file. This would then generate the correct display-
> manager.service which is required by systemd to start the display-manager.

That seems the only sensible possibility, YaST should generate
the unit file based on /etc/sysconfig/displaymanager which it
already modifies based on the installer control file depending on
the chosen DE in the installer. /etc/sysconfig/displaymanager
provides a generic means to configure display managers beyond
which display manager to start and that should keep working.

That's also the reason why update-alternatives is not a good
option apart from the problems of priorities.
-- 
Guido Berhoerster
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to