-
Notifications
You must be signed in to change notification settings - Fork 33
fix: avoid hardcode binary path #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
避免硬编码可执行文件的路径,提高可移植性 Log:
|
missing README.zh_CN.md |
License: REUSE Compliance Check failedDetails# MISSING COPYRIGHT AND LICENSING INFORMATIONThe following files have no copyright and licensing information:
The following files have no licensing information:
SUMMARY
Unfortunately, your project is not compliant with version 3.0 of the REUSE Specification :-( |
|
TAG Bot New tag: 1.3.31 |
|
TAG Bot New tag: 1.3.32 |
|
TAG Bot New tag: 1.3.33 |
|
TAG Bot New tag: 1.3.34 |
|
TAG Bot New tag: 1.3.35 |
|
TAG Bot New tag: 1.3.36 |
|
TAG Bot New tag: 1.3.37 |
|
TAG Bot New tag: 1.3.38 |
|
TAG Bot New tag: 1.3.39 |
|
TAG Bot New tag: 1.4.1 |
|
TAG Bot New tag: 1.4.2 |
|
TAG Bot New tag: 6.0.1 |
|
TAG Bot New tag: 6.0.2 |
|
TAG Bot New tag: 6.0.3 |
|
TAG Bot New tag: 6.0.4 |
|
TAG Bot New tag: 6.0.5 |
|
TAG Bot New tag: 6.0.6 |
|
TAG Bot New tag: 6.0.7 |
|
TAG Bot New tag: 6.0.8 |
|
TAG Bot New tag: 6.0.9 |
|
TAG Bot New tag: 6.0.10 |
|
TAG Bot New tag: 6.0.11 |
|
TAG Bot New tag: 6.0.12 |
|
TAG Bot New tag: 6.0.13 |
|
TAG Bot New tag: 6.0.14 |
|
TAG Bot New tag: 6.0.15 |
|
TAG Bot New tag: 6.0.16 |
|
TAG Bot New tag: 6.0.17 |
|
TAG Bot New tag: 6.0.18 |
|
TAG Bot New tag: 6.0.19 |
|
TAG Bot New tag: 6.0.20 |
|
TAG Bot New tag: 6.0.21 |
|
TAG Bot New tag: 6.0.22 |
避免硬编码可执行文件的路径,提高可移植性
QProcess会自动在系统所设的PATH中查找可执行程序,而/usr/bin/通常会位于PATH中,不应当硬编码路径。另外,单参数版本的
QProcess::startDetached()已被 Qt 标记为废弃,此处也转而使用了分别提供可执行名称与参数列表的多参数版本。