Re: Default setting of KDEDIRS on Debian

2002-10-30 Thread Achim Bohnet
On Wednesday 30 October 2002 02:38, Nathaniel W. Turner wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 I have been thinking, and I think it would be cool if the esteemed Debian KDE 
 packagers would consider the attached patch for startkde (which gets 
 installed as /usr/bin/kde3).  :-)
 
 The basic gist of it is that third-party apps installed from tarballs would 
 work properly out-of-the-box on a standard Debian KDE installation.  But read 
 the patch.  It's small.

This will slow down all KDE applications because KDE has to search much more
dirs to find application resources (especially in case /usr/local is NFS 
mounted)

Alternativ: Now that the /usr/share/config/ points to /etc/kde3/  the config 
file
/etc/kderc is not necessary at all anymore.  dpkg-divert it until /etc/kderc is
removed in postinst script.  Now define in /etc/kderc an additional KDE
hierarchy e.g. in /usr/local if it's necessary. (Maybe the kde pkgs can
provide a example /etc/kderc with commented out /usr/local settings).

Achim
 
 - -- 
 Nathaniel W. Turner
 http://www.houseofnate.net/
 Tel: +1 508 579 1948 (mobile)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.1 (GNU/Linux)
 
 iD8DBQE9vzgA25cAeUrFyDIRAiO7AJ448nnlk3Ws6xEm4/S8/X+2I1JkqACgsYwT
 St8v5lOSsGfIc/Lu4FGSxdE=
 =3m4o
 -END PGP SIGNATURE-
 

-- 
  To me vi is Zen.  To use vi is to practice zen. Every command is
  a koan. Profound to the user, unintelligible to the uninitiated.
  You discover truth everytime you use it.
  -- [EMAIL PROTECTED]




Default setting of KDEDIRS on Debian

2002-10-29 Thread Nathaniel W. Turner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have been thinking, and I think it would be cool if the esteemed Debian KDE 
packagers would consider the attached patch for startkde (which gets 
installed as /usr/bin/kde3).  :-)

The basic gist of it is that third-party apps installed from tarballs would 
work properly out-of-the-box on a standard Debian KDE installation.  But read 
the patch.  It's small.

- -- 
Nathaniel W. Turner
http://www.houseofnate.net/
Tel: +1 508 579 1948 (mobile)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE9vzgA25cAeUrFyDIRAiO7AJ448nnlk3Ws6xEm4/S8/X+2I1JkqACgsYwT
St8v5lOSsGfIc/Lu4FGSxdE=
=3m4o
-END PGP SIGNATURE-
--- startkde	2002-09-28 18:12:12.0 +
+++ startkde.new	2002-10-30 00:47:56.0 +
@@ -39,6 +39,27 @@
 kdehome=$HOME/.kde
 test -n $KDEHOME  kdehome=`echo $KDEHOME|sed s,^\~/,$HOME/,`
 
+# Set the default KDEDIRS to something sensible for a Debian system.
+#
+# This creates a default environment where:
+#
+# * packages installed from tarballs with a prefix of /usr/local work properly.
+#
+# * packages installed from tarballs with a prefix of /usr/local/kde work
+#   properly.
+#
+# * system administrators can to do things like add local system-wide .desktop
+#   files in /usr/local/share/applnk, etc.
+#
+# * I don't see several messages per week on some mailing list explaining that
+#   someone installed a 3rd party app but it has no icons/menu entry/etc.  =)
+#
+# Of course, if someone has already setup KDEDIRS a certain way, this will not
+# change that.
+
+test -z $KDEDIRS -a -z $KDEDIR \
+ export KDEDIRS=/usr/local:/usr/local/kde:/usr
+
 # Activate the kde font directories.
 #
 # There are 4 directories that may be used for supplying fonts for KDE.