主题:【原创】斗地主 – 从地主谈编程说起 -- Highway
${HOME}/.profile is another example, though it only sets more general enviroment variables, like $CVSROOT for cvs. If each software needs multiple settings, this file will become lenthy.
I am curious on how most Unix/Linux softwares address this need. I think maybe each software can have one entry in .profile which stores the path of its own setting file for each user. And the path is in a user's home directory, which can be specified at the first time the user uses this program. If this user chooses not to specify it, a generic one is used in stead.
The entry in .profile may not be needed, but I can't think a better way to let the program know that there is a user specific setting file for it to start with. I feel *nix systems are more passive in managing processes, an entry in .profile seems more consistent to me. But there will be a confliction if different softwares use a same entry name.
This reminds me something else. If two different *nix softwares have same excutable name, how is the confliction solved?
- 相关回复 上下关系8
🙂XML本身也在发展 萧飞逸 字99 2007-03-26 18:11:09
🙂我看过某大牛的讨论,他说注册文件的设计 老成都 字152 2007-03-24 01:22:04
🙂完全同意! 无斋主人 字75 2007-03-24 22:05:05
🙂How does *nix address this?
🙂every application has it own littles 字207 2007-03-24 10:32:02
🙂那应该就取决于path 不是老陈 字48 2007-03-23 14:12:13
😁老轧就是牛啊。 1 同文 字0 2007-03-23 09:40:23
🙂嘿嘿 landlord 字68 2007-03-24 05:24:16