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

feat: Do not check the patch directory of deepin-deb-fix when checking MIME data #1960

Closed
wants to merge 1 commit into from

Conversation

mhduiy
Copy link

@mhduiy mhduiy commented Apr 26, 2024

Deepin-deb-fix has patched some startup scripts without adding shebang and desktop files, and placed the patched desktop files in "/usr/share/deepin-desktop-fix/applications". When checking mimedata, this directory should not be checked to prevent multiple uninstalled applications from appearing in the open application list

某些应用启动脚本没有shebeng,直接丢到systemd中启动会造成启动失败,所以做了一个deepin-deb-fix的包用于将这些有问题的脚本加上shebeng并安装到系统中,安装修补包的时候会将有问题包的desktop和启动脚本分别安装到/us/share/deepin-desktop-fix/applications/和/opt/deepin-apps-fix/中,文管会直接检查XDG_DATA_DIR来扫描这个修补目录的desktop文件,会认为是安装了一个正常的应用并错误的显示在打开方式中(其实应用并没有实际安装).

故提此pr,文管应在这里排除修补目录来适配deepin-deb-fix(为了发版做的临时方案),后续会提pr以下面的方式修改

后续建议文管在扫描desktop文件的mime信息的时候应该提前检查一下TryExec字段是否有效,如果TryExec无效,应当忽略这个desktop文件,认为这个desktop文件是无效的

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html 参见这里的TryExec字段描述

…g MIME data

Deepin-deb-fix has patched some startup scripts without adding shebang and desktop files, and placed the patched desktop files in "/usr/share/deepin-desktop-fix/applications". When checking mimedata, this directory should not be checked to prevent multiple uninstalled applications from appearing in the open application list
@mhduiy mhduiy changed the title feat: Do not check the patch directory of deepin-deb-fix when checkin… feat: Do not check the patch directory of deepin-deb-fix when checking MIME data Apr 26, 2024
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: max-lvs, mhduiy

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mhduiy mhduiy closed this Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants