How to properly make a program's dbus methods discoverable?
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- linux
- Área
- desktop-dev, operating-systems
Línea de trabajo
Empieza reproduciendo el comportamiento con el Krita AppImage mencionado y los comandos busctl --user list y busctl --user call. Determina cómo el empaquetado de AppImage debería proporcionar un nombre D-Bus estable y una activación opcional del servicio; el trabajo estará terminado cuando la aplicación empaquetada sea localizable mediante un nombre adecuado y no solo mediante su dirección de peer.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 9.5k
- Forks
- 586
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AppImage/AppImageKit
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
AppImage/AppImageKit#1428 · 1 reacción ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AppImage/AppImageKit#1164 · 2 comentarios · 1 reacción ·
-
request: organize prerequisitesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
AppImage/AppImageKit#1452 · 2 comentarios ·
-
request: silent modeAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
AppImage/AppImageKit#1450 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
AppImage/AppImageKit#1435 · 2 comentarios ·
Todos los issues de AppImage/AppImageKit
Issues similares
-
Bundled uv is never updated and trusts the compromised eMudhra certificatesPosiblemente ocupada @FabienDanieau la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
alerts bug effort:S P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
nightscout/nocturne#2505 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
caelestia-dots/shell#2204 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Paste several items at onceAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100