Skip to content
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

dde 源码中硬编码路径问题 #3374

Closed
8 of 22 tasks
wineee opened this issue Aug 10, 2022 · 7 comments
Closed
8 of 22 tasks

dde 源码中硬编码路径问题 #3374

wineee opened this issue Aug 10, 2022 · 7 comments
Labels
bug | porting bug | 移植问题 good first issue Meta | Task List Epic | 问题或任务列表

Comments

@wineee
Copy link
Member

wineee commented Aug 10, 2022

SUMMARY | 问题概要

可执行程序(改用QStandardPaths::findExecutable()

qt5integration

deepin-screen-recorder

deepin-downloader

dde-network-core

dde-session-shell

dde-file-manager

dde-dock

deepin-log-viewer

dde-calendar

deepin-system-monitor

dde-introduction

/usr/share

@BLumia BLumia added Meta | Task List Epic | 问题或任务列表 good first issue labels Aug 10, 2022
@wineee wineee changed the title dde 中硬编码路径问题 dde 源码中硬编码路径问题 Aug 11, 2022
@wineee
Copy link
Member Author

wineee commented Aug 15, 2022

QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle") 这种 PATH 里找不到的怎么办

@BLumia
Copy link
Member

BLumia commented Aug 18, 2022

QProcess::startDetached("/usr/lib/deepin-daemon/desktop-toggle") 这种 PATH 里找不到的怎么办

CMakeLists 里加选项定义,或者加宏然后在代码里用宏里定义的路径?

@BLumia
Copy link
Member

BLumia commented Aug 25, 2022

Grand search:

@wineee
Copy link
Member Author

wineee commented Aug 26, 2022

在 NixOS 中,需要在 dtkwidget 有这样一个 patch
https://github.com/linuxdeepin/dde-nixos/blob/c11a1c1e99dace103fabc555a218b0b8d1e1f3c4/packages/library/dtkwidget/default.nix#L64

wrap-qt-apps-hook 只检查软件本身的 share 目录,不检查依赖的,而依赖dtkwidget只是库,不是可执行程序,不会被 warp
https://github.com/NixOS/nixpkgs/blob/690f9aef3c3d1b0b810fd57df3bb4fe0cca3e56a/pkgs/development/libraries/qt-5/hooks/wrap-qt-apps-hook.sh#L53

似乎没有更好的办法

@BLumia BLumia added the bug | porting bug | 移植问题 label Sep 5, 2022
@wineee
Copy link
Member Author

wineee commented Nov 10, 2022

Thanks @DonaldKellett, make lots of contributions

@BLumia
Copy link
Member

BLumia commented Nov 10, 2022

Hi @DonaldKellett, just FYI you can update existing PR by simply pushing new commit(s) to the branch that you used to create the PR, so you will no longer need to close and create a new PR every time you want to modify/amend a PR :)

@DonaldKellett
Copy link

Hi @DonaldKellett, just FYI you can update existing PR by simply pushing new commit(s) to the branch that you used to create the PR, so you will no longer need to close and create a new PR every time you want to modify/amend a PR :)

Noted with thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug | porting bug | 移植问题 good first issue Meta | Task List Epic | 问题或任务列表
Projects
None yet
Development

No branches or pull requests

3 participants