Skip to Content.
Sympa Menu

sm-users - Re: [SM-Users] environment variables and preloads

sm-users AT lists.ibiblio.org

Subject: Sourcemage Users List

List archive

Chronological Thread  
  • From: Jason Flatt <jason AT flattfamily.com>
  • To: sm-users AT lists.ibiblio.org
  • Subject: Re: [SM-Users] environment variables and preloads
  • Date: Sat, 6 Dec 2003 20:35:34 -0800

On Saturday 06 December 2003 03:52 pm, Hamish Greig wrote:
> looking at a lot of the bugs generated by prometheus, it appears quite a
> few spells are adding lines to /etc/profile. but not removing them after
> dispel. To safely add lines and then remove them takes a POST_INSTALL and
> POST_REMOVE file.
> Another, simpler, less complicated way would be to add
> "for file in /etc/profile.d/* ; do . $file ; done"
> to the /etc/profile file (most probably in bash spell)
> then all the spells that want to set preloads or vars can just install a
> file to /etc/profile.d/* and it will be sourced at login.
> Later if the spell is dispelled, /etc/profile will remain untouched and the
> file in /etc/profile.d/ will be removed, no POST_INSTALL or POST_REMOVE
> needed.
> This would be a much cleaner implementation of login variable/preload
> setting. A few of us talking on IRC thought this would be a good thing to
> implement in the short term, and as I am off work for a few days I could do
> this (and close a few trivial prometheus bugs at the same time), but wanted
> feedback from others before making such a major change.
> Anyone object to this?
> Anyone want a better explanation ?
> Anyone see problems for non-bash shell users (do we care about them
> anyway ?) ?
> Anyone see any simple flaw we overlooked in discussion on IRC ?
> Hamish


I think this is a great idea. Then I could have my own customization in my
own file w/o fear of some program mucking them up. :^)


--
Jason Flatt (jason @ flattfamily . com)
Father of five (http://www.flattfamily.com/)
Linux user (http://www.sourcemage.org/)
IRC Nick: Oadae Channels: #sourcemage, #lvlug Server: irc.freenode.net
PGP Key: E992213F - 0254 9DB7 BE0E 312D 8352 6E39 0700 FB95 E992 213F





Archive powered by MHonArc 2.6.24.

Top of Page