[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#308251: Patch to let base-config allow/preseed selection of default desktop environment in 2nd stage



Package: base-config
Version: 2.53.7
Severity: wishlist
Tags: patch

Hi,
  Since I prefer KDE over GNOME and since I had to do a multitude of
Debian installations using KDE, I didn't want to configure each time the
default environment, rather I wanted to be able to choose it/preseed it
during the install.
 
  I prepared this base-config hook, which works, at least for me. I'd
like some feedback though, because I'm not entirely certain that it's
doing everything the correct way.
  Basically, I use the already existing mechanism of 'alternatives'.
Since both KDE/GNOME add an alternative to 'x-session-manager', I just
had to list the available and let the user select the preferred. Then, I
just call '/update-alternatives --set x-session-manager <selection>'.

I also used an associative map to present the user with more user-friendly
options (KDE/GNOME instead of /usr/bin/startkde and /usr/bin/gnome-session). 
If anyone would like some other options (I'm sorry I don't have the time 
right now to search the debian archive for other alternatives), please feel
free to add them/send me a patch.

Also, other comments/suggestions, welcome.

Konstantinos


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=el_GR.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)

Versions of packages base-config depends on:
ii  adduser                 3.63             Add and remove users and groups
ii  apt                     0.5.28.1         Advanced front-end for dpkg
ii  bsdutils                1:2.12-10        Basic utilities from 4.4BSD-Lite
ii  console-data            2002.12.04dbs-49 Keymaps, fonts, charset maps, fall
ii  console-tools           1:0.2.3dbs-56    Linux console and font utilities
ii  debconf                 1.4.30.11        Debian configuration management sy
ii  debianutils             2.8.4            Miscellaneous utilities specific t
ii  gettext-base            0.14.1-10        GNU Internationalization utilities
ii  passwd                  1:4.0.3-31sarge1 change and administer password and

-- debconf information excluded

Attachment: x-session-manager-postinst.tgz
Description: Binary data


Reply to: