Define system integration data to use for registering MIME types

オープン
#22 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
linux
領域
documentation

調査の方向性

提案されている AppDir パス usr/share/mime/packages と、参照されている AddingMIMETutor のガイダンスから始めます。AppImage 仕様で、システム統合ツールが $XDG_DATA_HOME/mime/packages にデプロイすべき *.xml ファイル、ユニークな名前によってアンデプロイをどのようにサポートするか、そしていつ 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AppImage/AppImageSpec のほかの issue

AppImage/AppImageSpec の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。