Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
文件管理器启动其它程序时,应恰当设置当前目录(cwd)
Experiences and Insight
644
views ·
1
replies ·
To
floor
Go
duanyao
deepin
2017-12-03 08:20
Author
本帖最后由 duanyao 于 2017-12-3 00:23 编辑
目前深度文件管理器(1.6.2)启动其它程序时,当前目录(cwd)总是设定为家目录( ~)。
大多数情况下这不是问题,但有些程序、脚本要求在当前目录下执行,这种方式就行不通了,应将当前目录设定为该文件所在的目录。例如:
点击一个可执行程序 ~/aaa/x1 ,则进程 x1 的当前目录应该是 ~/aaa 。
点击一个 ~/bbb/x2.jar 文件,则进程 java 的当前目录应该是 ~/bbb 。
Windows 文件管理器的行为就是这样的。 @jingle
Reply
Like 0
Favorite
View the author
All Replies
wtz
deepin
2017-12-03 11:44
#1
可以考虑加一个选项吧。虽然不是所有用户都需要这个功能。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[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
Looking Deepin ci 25.2.0 Developer/Unstable repositories
Вы настраиваете внешний вид Deepin?
Popular Events
More
目前深度文件管理器(1.6.2)启动其它程序时,当前目录(cwd)总是设定为家目录( ~)。
大多数情况下这不是问题,但有些程序、脚本要求在当前目录下执行,这种方式就行不通了,应将当前目录设定为该文件所在的目录。例如:
点击一个可执行程序 ~/aaa/x1 ,则进程 x1 的当前目录应该是 ~/aaa 。
点击一个 ~/bbb/x2.jar 文件,则进程 java 的当前目录应该是 ~/bbb 。
Windows 文件管理器的行为就是这样的。 @jingle