Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
发现打开VSCode会执行一遍.profile文件
deepin Talks
963
views ·
2
replies ·
To
floor
Go
jb71415
deepin
2017-04-22 07:30
Author
点击快捷方式打开VSCode 会执行一遍.profile文件 这会导致你的开机启动项被执行一遍 并且VSCode窗口会加载不出来
但是在终端中执行code命令打开VSCode则不会导致刷新.profile
初步估计是VSCode的desktop文件有问题
这个是加了自启conky的结果:百 度 云
https://pan.baidu.com/s/1slhjbi9
Reply
Like 0
Favorite
View the author
All Replies
jb71415
deepin
2017-04-22 07:42
#1
我前面自启conky的代码会在home目录下生成一个nohup.out输出文件
把消息重定向到null设备之后 VSCode就可以打开 但是还是会刷新一遍.profile我的其他脚本会被执行
Reply
Like 0
View the author
jb71415
deepin
2017-04-22 07:50
#2
如果想要自启程序然后又能打开VSCode的话 可以尝试:
在终端中打开code
或者将输出重定向到/dev/null
但是无论怎样都会执行一遍.profile只是修改之后能够使用VSCode
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
但是在终端中执行code命令打开VSCode则不会导致刷新.profile
初步估计是VSCode的desktop文件有问题
这个是加了自启conky的结果:百 度 云
https://pan.baidu.com/s/1slhjbi9