[Pkg-ltsp-devel] Handling ldm themes (Was: current upload and bug status)

Vagrant Cascadian vagrant at freegeek.org
Thu Aug 10 01:34:20 UTC 2006


On Wed, Aug 09, 2006 at 11:29:10PM +0200, Petter Reinholdtsen wrote:
> [Vagrant Cascadian]
> >    4) #360406: ltsp-server: what's skolelinux?
> > 
> > in the long-term, we should probably use a debconf question
> > (preseedable) to set up the preferred alternative. at the moment, it's
> > hard-coded for debian-edu/skolelinux. the debian theme looks stupid, but
> > maybe would be better to make that default, and try to find some artist
> > to write a better debian theme?

(debian theme is less stupid now, so i set it to the highest priority in
the pkg-ltsp main branch)
 
> I've made a new package for the themes, artwork and images used in
> skolelinux/debian-edu, and just copied the ldm theme into this
> package.  Can we come up with a way where the installation of
> debian-edu-artwork and ldm together make sure the debian-edu theme is
> selected automatically?  

i would suggest removing the debian-edu theme from ldm, adding it to
debian-edu-artwork, and setting the priority for the debian-edu ldm
theme to a very high number in the debian-edu-artwork postinst (on the
presumtion that debian-edu-artwork implies that you want debian-edu
themes over other themes). that way, a non debian-edu install will still
default to the "Debian" theme (and on ubuntu, presumably "Ubuntu" will
be default).

so, in the debian-edu-artwork postinst:

update-alternatives \
    --install /usr/share/ldm/themes/default \
    ldm-theme /usr/share/ldm/themes/Debian-Edu 80

at the moment, debian-edu could enable the appropriate theme with
something in the debian-edu-ltsp script (if that's still being used)
like:

chroot /opt/ltsp/ARCH update-alternatives --set ldm-theme /usr/share/ldm/themes/Debian-edu


debconf code could use update-alternatives to get a list of available
alternatives, and then prompt for it (probably at low or medium
priority). i think the alternatives system still makes sense for this
sort of thing, providing a default, while making it possible to easily
override the default.

could we use lsb_release in the postinst to set the defaults differently
on ubuntu or debian systems?

live well,
  vagrant



More information about the Pkg-ltsp-devel mailing list