15新版配置profile文件环境变量重启不自动配置问题
Tofloor
poster avatar
yoqu
deepin
2015-12-31 22:51
Author
简单描述下。
配置jdk 的path 和classpath的时候,直接在/etc/.profile文件中配置好重启不生效,每次必须在终端使用source 命令刷下才可以。我还以为就我一个有问题,看见论坛好多朋友都在发帖问。。
我暂时提供一个解决办法, 不过希望深度修复下这个bug
解决办法:


把环境变量配置到/home/[user]/.bashrc

配置到这个文件重启就生效了,当然这个只是针对用户级别的


Reply Favorite View the author
All Replies
a8******48@gmail.com
deepin
2016-01-01 18:30
#1
好吧,醉了
Reply View the author
a8******48@gmail.com
deepin
2016-01-01 18:30
#2
这个不太好使
Reply View the author
jungle
deepin
2016-01-01 20:35
#3
我也遇到了 弄了一上午
Reply View the author
cxbii
deepin
2016-01-04 18:07
#4
你编辑的时候是普通用户权限的?
你应该带上sudo把
Reply View the author
yoqu
deepin
2016-01-04 19:44
#5
https://bbs.deepin.org/post/34999
你编辑的时候是普通用户权限的?
你应该带上sudo把

编辑肯定用的sudo啊,不然没法保存,且source刷新下都可以使用。证明我是写对了的。。至于开机为什么不行我也不知道
Reply View the author
cxbii
deepin
2016-01-04 21:02
#6
https://bbs.deepin.org/post/34999
编辑肯定用的sudo啊,不然没法保存,且source刷新下都可以使用。证明我是写对了的。。至于开机为什么不行 ...

https://bbs.deepin.org/post/35286
应该是这个问题无误了
Reply View the author