How to properly make a program's dbus methods discoverable?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- linux
- Ambito
- desktop-dev, operating-systems
Direzione di ricerca
Inizia riproducendo il comportamento con il Krita AppImage indicato e i comandi busctl --user list e busctl --user call. Determina come il packaging AppImage dovrebbe fornire un nome D-Bus stabile e l’attivazione opzionale del servizio; il lavoro è completato quando l’applicazione pacchettizzata è individuabile tramite un nome appropriato anziché soltanto tramite il proprio indirizzo peer.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 9.5k
- Fork
- 586
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AppImage/AppImageKit
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
AppImage/AppImageKit#1428 · 1 reazione ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AppImage/AppImageKit#1164 · 2 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
AppImage/AppImageKit#1452 · 2 commenti ·
-
request: silent modeAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
AppImage/AppImageKit#1450 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
AppImage/AppImageKit#1435 · 2 commenti ·
Tutte le issue di AppImage/AppImageKit
Issue simili
-
BUG: PROD: v1.3.0-beta Onboarding Profile Picture Misaligns When Name Validation Error AppearsForse già presa @RitikaSen27 l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
AOSSIE-Org/PictoPy#1647 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
telegramdesktop/tdesktop#31505 ·
I maintainer di solito rispondono entro 1 giorno
-
2026 Error Report
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
triplea-game/triplea#15096 ·
I maintainer di solito rispondono entro 1 giorno
-
bug mcp misleading small
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
area: capture bug P3: low value: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
patrick-hudson/put.gd-desktop#493 ·
I maintainer di solito rispondono entro 1 giorno