Ubuntu 12.04 似乎没有执行我的 .profile 文件

vla*_*ean 5 gnome scripts .profile

(我是 kinna n00bish)

1:我安装了 ubuntu 11.10,然后升级到 12.04。

2:我的 .profile 文件中有一个脚本来关闭我的笔记本电脑的触摸板(它可以工作,并在登录时执行)

3:现在它不会在登录时执行。

4:如果我'source .profile' 脚本仍然有效。

5:仍在使用gnome(如果这很重要)

我需要在登录时运行该脚本,我该怎么办?

我应该将我的个人脚本放在另一个文件中,还是有办法让 ubuntu 再次执行我的文件?

Thx,你们统治!

Mar*_*ied 6

您的主目录中有 .bash_profile 或 .bash_login 吗?.profile 文件中有这些注释:

# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
Run Code Online (Sandbox Code Playgroud)