Re: Execute at login for KDE only

Kevin Krammer <[email protected]>
Newsgroups gmane.comp.kde.linux
Organization KDE
Message-ID <[email protected]>
On Wednesday, 2012-09-26, Duncan wrote:

> 2b) That leaves the pre-kde-start scripts, found in $KDEHOME/env/ , and
> the kde shutdown scripts, found in $KDEHOME/shutdown/ .   In general,
> these work exactly like the autostart scripts, with a few exceptions:
> 
> 2b1) Unlike the scripts autostart dir, I know of no way to customize the
> shutdown and environment dir locations, beyond changing $KDEHOME or
> altering the source code, of course.

It is looking into all $KDEDIRS/env if I remember correctly, so one could do 
something like
KDEDIRS=/usr:/usr/local/:/my/prefix and put those scripts into /my/prefix/env

> 2b2) As mentioned at the top, unlike script autostart, kde-shutdown and
> environment/pre-kde-start require that the script or symlink use the *.sh
> extension.  Of course the symlink functionality allows a workaround to
> that, by simply naming the symlink *.sh, regardless of what the script it
> points at is actually named.

An important point to consider here is that, as far as I know, those scripts 
will be sourced by the startkde script, thus need to be compatible with 
whatever shell is set up for interpreting /bin/sh scripts.

The scripts themselves can of course launch other scripts which use different 
interpreters.

Cheers,
Kevin
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

___________________________________________________
This message is from the kde-linux mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQBQYxrJnKMhG6pzZJIRAtTHAJ9T0u2zEH5zkDGOrfmSPEjUAsgqqACfW1Ay
ubHFQtIr+ft5RDFvPHEJz5Q=
=FBsj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.