环境变量配置
Tofloor
poster avatar
stoic
deepin
2019-10-09 23:48
Author
最开始改的是~/.bashrc

通过点击应用图标进不去,终端普通权限也打不开,后面切换到root才能打开
之后尝试修改etc/profile,source和关终端重启都不起作用,还是只能通过root模式下的命令行启动程序。

查看env如图:

Reply Favorite View the author
All Replies
avatar
funtoo
deepin
2019-10-10 01:14
#1
看下二进制执行程序的所有者和权限。
Reply View the author
avatar
stoic
deepin
2019-10-10 06:28
#2
https://bbs.deepin.org/post/183603
看下二进制执行程序的所有者和权限。

感谢回复,把/bin文件中所有的二进制程序都更改成777,还是无法在普通终端打开,
Reply View the author
avatar
老陌
deepin
2019-10-10 22:49
#3
没看懂什么东西打不开?
Reply View the author
avatar
stoic
deepin
2019-10-10 23:02
#4
https://bbs.deepin.org/post/183603
没看懂什么东西打不开?

omnetpp打不开
Reply View the author
avatar
wildlife
deepin
2019-10-10 23:30
#5
/etc/profile 只对 --login 登录式用户有效,非登录式需要将 其配置到 ~/.bashrc

https://www.gnu.org/software/bas ... -Startup-Files.html

另, source 命令仅对当前终端有效,全局生效需要注销重新登录
Reply View the author
avatar
stoic
deepin
2019-10-11 02:56
#6
https://bbs.deepin.org/post/183603
/etc/profile 只对 --login 登录式用户有效,非登录式需要将 其配置到 ~/.bashrc

https://www.gnu.org/sof ...

可是我两个文件都配置了,在终端(非root)中还是无法通过指令omnetpp打开应用,必须提权才能打开
Reply View the author
avatar
老陌
deepin
2019-10-11 03:33
#7
虽然不懂,但很感兴趣,关注一下。
Reply View the author
avatar
funtoo
deepin
2019-10-11 03:40
#8
https://bbs.deepin.org/post/183603
感谢回复,把/bin文件中所有的二进制程序都更改成777,还是无法在普通终端打开, ...

具体报错呢?除了权限、环境变量、所有者,最好也看看acl标志。
Reply View the author
avatar
stoic
deepin
2019-10-11 04:14
#9
https://bbs.deepin.org/post/183603
具体报错呢?除了权限、环境变量、所有者,最好也看看acl标志。

在普通终端输入omnetpp,显示未找到指令,提权后输入omnetpp可以打开应用
Reply View the author