Define system integration data to use for registering MIME types
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 文档
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- linux
调研方向
从建议的 AppDir 路径 usr/share/mime/packages 和所引用的 AddingMIMETutor 指南开始。在 AppImage 规范中定义系统集成工具应将哪些 *.xml 文件部署到 $XDG_DATA_HOME/mime/packages,唯一名称如何支持取消部署,以及何时运行 update-mime-database。
由索引模型根据 Issue 内容生成。
描述
Some applications are handlers for certain MIME types which might not (yet) be part of the shared-mime-info database at least on most target systems.
So for proper system integration those MIME types should be registered with the system, so that the app from the appimage can as well be registered as handler for files of those MIME types.
The spec should define what data in what files could be added to the appdir, so that system integrators (like appimaged) know what to look for and what to use.
The typical GUI linux system uses shared-mime-info. Info about deploying custom extensions (per user) can be found here: https://www.freedesktop.org/wiki/Specifications/AddingMIMETutor/
So applications which deploy custom MIME types following the XDG/FHS/shared-mime-info would normally deploy one or more files to $PREFIX/usr/share/mime/packages and then expect the package installer to invoke update-mime-database so all the new and old separate data about MIME types is integrated in the actual system database.
So for a start with the spec, given that other parts are already picking up optionally files from the XDG/FHS layout, the idea could be to point out that if there are any *.xml files in the AppDir at usr/share/mime/packages, system integration tools with XDG-based systems are recommended to deploy those files to the proper user directory ($XDG_DATA_HOME/mime/packages) with some unique name as also needed for undeployment, and then run update-mime-database.
What do you think?
- 主要语言
- 没有语言数据
- 星标
- 94
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AppImage/AppImageSpec 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
AppImage/AppImageSpec#60 · 7 条评论 ·
-
难度 5/5 一周以上 新手友好度 25/100
AppImage/AppImageSpec#59 · 15 条评论 · 2 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
AppImage/AppImageSpec#48 · 2 条评论 ·
-
help wanted
难度 5/5 一周以上 新手友好度 25/100
AppImage/AppImageSpec#44 · 10 条评论 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
AppImage/AppImageSpec#40 · 1 条评论 ·
查看 AppImage/AppImageSpec 的全部 Issue
相似的 Issue
-
F-Droid FOSS question
难度 1/5 1 小时以内 新手友好度 75/100
d4rken-org/butler#365 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 85/100
ShaftHQ/chaosengine-harness#423 ·
维护者通常 1 天内回复
-
external-plugin ready-for-review
难度 2/5 1-3 小时 新手友好度 72/100
github/awesome-copilot#6655 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
X11Libre/xserver#4255 · 2 条评论 ·
维护者通常 1 天内回复
-
nightly-cleanup
难度 2/5 1-3 小时 新手友好度 78/100
max-sixty/worktrunk#4939 · 1 个 reaction ·
维护者通常 1 天内回复