Bug#255515: Default session mechanism proposal
Dan Korostelev
Dan Korostelev <dan@ats.energo.ru>, 255515@bugs.debian.org
Sun, 14 Nov 2004 02:50:06 +0300
--=-bUmDy6lWOrLU+6pws7Fe
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
I agree that would be cool. I want to package gnome-clipboard-daemon (a
daemon that stores clipboard data even when you close its program) and
it'd be cool if I were able to add it to default GNOME session to make
it "Just work".
The simpliest method is to make an update-gnome-session command that
will create default.session file from parts located in
default-session.d/ directory. No need to even change any gnome-session
code. By default, gnome-session package will install the essential
default session data and run update-gnome-session command that will add
that file first and the ones from default-session.d/ directory then.
Other packages that will add their programs to default session, will
install their part to default-session.d/ directory and do the
update-gnome-session in postinst.
The simpliest update-gnome-session script is like this:
---
#!/bin/sh
cat /usr/share/gnome/gnome-session.default > /usr/share/gnome/default.sessi=
on
for FILE in /usr/share/gnome/gnome-session/default-session.d/*; do
cat $FILE >> /usr/share/gnome/default.session;
done
---
I hope you understood my idea. Can't wait it to be realised. ;-)
Thanks for your work, bye!
--=20
Dan Korostelev <dan@ats.energo.ru>
--=-bUmDy6lWOrLU+6pws7Fe
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
iQCVAwUAQZadrkVoLjvNQF6FAQLL7gQAnPRaqo5J4qYra+O8C5GXi72ksV1IEo3C
a6eeYiAEP7SUt6pSDG01pSfO/SCOrpPkg6Zdi6YZWqyIs+kQ/7rP2Qx2KyMmKmi+
VyenHxPhoVB1zU9wb2/PvVKH3iQvP01NxgpMOdg1jhM75i5OEFmskGLs8XPImgEi
EM2kWOasFV4=
=VXRC
-----END PGP SIGNATURE-----
--=-bUmDy6lWOrLU+6pws7Fe--