[Boot/Shutdown] 系统好像不是默认执行.bashrc的,无法自动注入脚本
Tofloor
poster avatar
xiaodongrich
deepin
2025-06-16 01:22
Author

deepinV23, V25都不行,好像是DDE桌面和Ubuntu的不一样。.bashrc里包含的.jetbrains.vmoptions.sh,默认不执行,导致相应的jar没有被包含再路径中。

只能开terminal才可以找到加入路径。Desktop Entry的PreExec也试过了,PreExec=sh /home/ubuntu/.jetbrains.vmoptions.sh 无效

类似这种如何注入?

Reply Favorite View the author
All Replies
neko
deepin
Ecological co-builder
Resources Team Moderator
2025-06-16 02:32
#1

你是想开机自动执行脚本?

Reply View the author
wils
deepin
2025-06-16 03:43
#2
It has been deleted!
dpme
deepin
2025-06-16 06:54
#3

bashrc当然是启动bash才执行啊,放.profile里吧

Reply View the author
观摩
deepin
2025-06-16 07:47
#4

没搞懂

Reply View the author
ypli0629
deepin
a day ago
#5

把脚本里面内容拷贝到 /etc/environment.d/jetbra.conf ,删除每一行开头的export,重启就行了

Reply View the author
我是昵称
deepin
18 hours ago
#6

日常终端操作 ➔ ~/.bashrc 系统级环境变量 ➔ ~/.profile 或 ~/.bash_profile 跨 Shell 兼容性 ➔ 优先使用 ~/.profile 图形界面兼容性 ➔ 避免在 ~/.bash_profile 中设置关键变量(某些桌面环境不加载它)

Reply View the author