Bug#348501: /usr/bin/startkde: No manpage for startkde, problems with x-session-manager/update-alternatives
Package: ksmserver
Version: 4:3.3.2-1sarge1
Severity: minor
File: /usr/bin/startkde
Tags: patch
I am setting startkde to my default x-session-manager:
update-alternatives --set x-session-manager /usr/bin/startkde
then /etc/cron.daily/man-db exposes the following waring:
mandb: warning: /usr/share/man/man1/x-session-manager.1.gz is a dangling symlink
this is because startkde has no manpage. gnome-session and xfce4-session
provide a manpage that is registered as a slave in /etc/alternatives. So
when I do update-alternatives to startkde the link for the manpage is
broken. I have written a small manpage for startkde (which is based on
xfce4-session(1) and the contents of startkde), and included a small
patch for ksmserver.postinst.
Regards
Philipp
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.14.5.20051227
Locale: LANG=C, LC_CTYPE=de_DE.ISO8859-1 (charmap=ISO-8859-1)
Versions of packages ksmserver depends on:
ii kdelibs4 4:3.3.2-6.3 KDE core libraries
ii libart-2.0-2 2.3.17-1 Library of functions for 2D graphi
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.3-13 GCC support library
ii libice6 4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
ii libidn11 0.5.13-1.0 GNU libidn library, implementation
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libqt3c102-mt 3:3.3.4-3 Qt GUI Library (Threaded runtime v
ii libsm6 4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii libstdc++5 1:3.3.5-13 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-14sarge1 X Window System miscellaneous exte
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii xlibs 4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu
ii zlib1g 1:1.2.2-4.sarge.2 compression library - runtime
-- no debconf information
.TH startkde 1 "Jan 17, 2005"
.SH NAME
startkde \- Starts up the KDE Desktop Environment
.SH SYNOPSIS
.B startkde
.br
.SH DESCRIPTION
This manual page documents briefly the
.B startkde
command.
This manual page was written for the Debian distribution
because the original program does not have a manual page.
.PP
The \fBstartkde\fP program starts up the KDE Desktop Environment and
is typicaly executed by your login manager (e.g. xdm, gdm, kdm, wdm or from
your X startup scripts). It will load your last session or a default session
that includes the standard KDE programs if no saved session is available.
\fBstartkde\fP is an standard X11R6 session manager that can manage
any X11R6 SM compliant program.
\fBstartkde\fP uses the contens of the ~/.kde/ directory
for starting previously saved sessions. Source scripts found in ~/.kde/env/*.sh
can be used to define environment variables that will be available to all KDE
programs.
For anything else (that doesn't set env vars, or that needs a window manager),
better use the ~/.kde/Autostart folder.
At the end of a session scripts found in ~/.kde/shutdown will be executed.
.SH OPTIONS
\fBstartkde\fP takes no command line options.
.SH AUTHOR
\fBstartkde\fP is written by the KDE Project
This manual page was written by Philipp Grau.
.SH "REPORTING BUGS"
Report bugs of this modified Debian version of startkde to the Bug
Tracking System at http://bugs.debian.org/
.SH COPYRIGHT
Copyright \(co 2005 Philipp Grau.
--- ksmserver.postinst.orig 2006-01-17 12:11:06.027277602 +0100
+++ ksmserver.postinst 2006-01-17 12:09:44.073571701 +0100
@@ -19,7 +19,11 @@
case "$1" in
configure)
- update-alternatives --install /usr/bin/x-session-manager x-session-manager /usr/bin/startkde 40
+ update-alternatives --install /usr/bin/x-session-manager \
+ x-session-manager /usr/bin/startkde 40 \
+ --slave /usr/share/man/man1/x-session-manager.1.gz \
+ x-session-manager.1.gz /usr/share/man/man1/startkde.1.gz
+
;;
abort-upgrade|abort-remove|abort-deconfigure)
Reply to: