On Thu, Jun 23, 2011 at 12:52 PM, Anas Nashif <[email protected]> wrote:
>
> On 23 Jun 2011, at 20:35, Wichmann, Mats D 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.
>
> if I remember correctly even if you had multiple sessions with gdm for 
> example, you could configure one in a 'configuration file' as your desktop, 
> no links were involved.

a config file to determine what config file is used by default?

really?

I thought the symlink method was rather simple, it's in line with what
systemd does (default.target for instance) and it doesn't need to
parse 2 config files, just 1.

>> 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.
>
> Then there is a bug either in the netbook or xbmc.

no, there is not.

the xbmc package can perfectly be installing a
/usr/share/xsessions/xbmc.desktop file on a machine that runs the
netbook UX (and has /usr/share/xsessions/x-meego-nb.desktop). That is
never a bug. It's also perfectly valid, as the xbmc package can be
both an entire desktop as well as just an application.

as a matter of fact, it's insane that doing `zypper in -t pattern
tablet-applications` completely breaks your netbook desktop
installation, as it is right now. At least this change will somewhat
help to reduce that breakage.

>> 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.
>
> How is that better beside making it more complex by allowing things to be 
> done in different ways and thus increasing the the risk that 1 type of 
> settings overrides the other leaving the user (What user? Probably the 
> developer) perplexed why he is getting a different desktop (Which he should 
> not have in the first place)

I'm not even sure how to answer this.

I was asked by several people to consider this, and frankly, it was
high on my list of things to implement originally when we wrote
uxlaunch. I think I implemented it in the right way, given the fact
that I've given this code almost 2 years of thought. Perhaps you'd
like to tell me how you would like this to work instead? I must have
wasted my time if you're so strongly opposed to it...

also, the last part of your sentence is just wrong. with this system
in place, there is zero, none, no way whatsoever that the default
system desktop changes on any system without someone going in and
changing the 'default.desktop' symlink or editing the config file or
something like that. That is in direct contrast to the old situation,
where this exactly DOES happen. Just install a netbook image and
`zypper in -t pattern tablet`.

Auke
_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to