How to properly make a program's dbus methods discoverable?
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- linux
調査の方向性
参照されている Krita AppImage と、busctl --user list および busctl --user call コマンドを使って、まず動作を再現します。AppImage のパッケージングで、安定した D-Bus 名とオプションのサービスアクティベーションをどのように提供すべきかを判断します。パッケージ化されたアプリケーションが peer アドレスだけでなく、適切な名前で検出可能になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I discovered this with krita. In particular, the krita-4.2.9-x86_64.appimage with sha1sum 61933e6b86a348f155824b588ecdddf235133492.
grabbing krita's PID with xprop on its main window, then looking the peer address up in busctl --user list lets me get at all the "actions" that it has, which includes entries in the menus, and buttons on toolbars i think.
I can now do silly things like
busctl --user set-property :1.20637 /krita/MainWindow_1/actions/options_configure org.qtproject.Qt.QAction text s "what even is this"
busctl --user set-property :1.20637 /krita/MainWindow_1/actions/options_configure_toolbars org.qtproject.Qt.QAction text s "why are you making my krita unusable like this"
resulting in the menus changing their texts:

However, having to find krita by obtaining its PID, and then the peer address on the user bus is much less convenient than accessing it via a proper name.
For one, the entry shows up with the name "AppRun", where i would expect "krita".
Compare how krita and the xfce4-appfinder (not an appimage) show up in busctl --user list
NAME PID PROCESS USER CONNECTION
:1.20637 17624 AppRun timo :1.20637
:1.19664 5312 xfce4-appfinder timo :1.19664
org.xfce.Appfinder 5312 xfce4-appfinder timo :1.19664
and i can call it with its "proper name" as well:
busctl --user call org.xfce.Appfinder /org/xfce/Appfinder org.xfce.Appfinder OpenWindow bs 0 ""
I'm not exactly sure what can or has to be done, but at the very least the process name should be fixed to read "krita". In order to have the proper name, I believe some kind of schema would have to be installed on the system. Going even further, the service could be made activatable, so that when a dbus message is sent, it gets launched if it's not running yet.
Thanks for your time.
PS:

why? because i can.
- 主要言語
- 言語のデータがありません
- スター
- 9.5k
- フォーク
- 586
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AppImage/AppImageKit のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
AppImage/AppImageKit#1428 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AppImage/AppImageKit#1164 · コメント 2 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
AppImage/AppImageKit#1452 · コメント 2 件 ·
-
request: silent modeオープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
AppImage/AppImageKit#1450 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
AppImage/AppImageKit#1435 · コメント 2 件 ·
AppImage/AppImageKit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
HakanSeven12/OpenCADStudio#2089 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bundled uv is never updated and trusts the compromised eMudhra certificates対応中かも @FabienDanieau が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
alerts bug effort:S P3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
nightscout/nocturne#2505 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
caelestia-dots/shell#2204 ·
メンテナーはふだん 1 日以内に返信