On Thu, Jun 23, 2011 at 12:35 PM, Wichmann, Mats D <[email protected]> wrote: > > > On Thu, Jun 23, 2011 at 12:31 PM, Kok, Auke-jan H <[email protected]> > wrote: >> >> On Thu, Jun 23, 2011 at 12:20 AM, Anas Nashif <[email protected]> >> wrote: >> > Why exactly is this link needed anyways >> >> >> uxlaunch is now a generic xsession launcher. It will use the session >> files stored in /usr/share/xsessions (and a few other places including >> ~/.config/xsessions/) to start up the desktop session, more or less >> compatible with gdm, kdm etc. >> >> Also, the user themselves can both create sessions themselves and >> select which session to start at boot time completely independent of >> what the distro, or SA has set as global preference. >> >> The issue is that we need to figure out what the "system" default is >> at boot time. Also, the SA needs to be able to override that for all >> users, and last, the user needs to be able to override this himself. >> >> On top of that, in the current state of MeeGo it's impossible to have >> packages install "the default setting" since at any given time we will >> have multiple potential sessions available. >> >> Take a look for instance at netbook. As soon as a user installs the >> xbmc package, he now has 2 session files. It would be an issue if all >> of a sudden his desktop would no longer appear after a reboot, but >> something else instead. >> >> It also makes no sense to do a package %post, since, for instance, on >> netbook, it's quite likely that mcompositor is installed before >> mutter, and now your netbook image would start.... god knows what. >> >> So, I made the choice to switch from: >> >> `echo "session=/usr/bin/foo" >> /etc/sysconfig/uxlaunch" >> >> to >> >> `ln -sf gnome.desktop /usr/share/xsessions/default.desktop` >> >> which in itself is already better, since we're still allowing the >> config file to be used, and the user can override this choice, and >> we're not potentially messing up a config file. > > can you use the alternatives system for this? >
With chkconfig removed from Trunk/Trunk:Testing, update-alternatives is also gone. Auke _______________________________________________ MeeGo-packaging mailing list [email protected] http://lists.meego.com/listinfo/meego-packaging
