[Gambas-user] Error in gb.dbus ?

Hans Lehmann hans at gambas-buch.de
Tue Mar 20 09:29:21 CET 2018


Am 19.03.2018 um 22:59 schrieb T Lee Davidson:
> ' Gambas module file
>
> Public Sub Main()
>
>    Dim hDBusSessionSignal, hDBusSystemSignal As DBusSignal
>    hDBusSessionSignal = New DBusSignal(DBus.Session, "org.mpris.MediaPlayer2.Player", True) As "SessionSignal"
>    hDBusSystemSignal = New DBusSignal(DBus.System, "org.freedesktop.NetworkManager", True) As "SystemSignal"
>
> End
>
> Public Sub SystemSignal_Signal(Signal As String, Arguments As Variant[])
>
>    If Signal = "StateChanged" Then
>      Print "State changed."
>    Endif
>
> End
>
> Public Sub SessionSignal_Signal(Signal As String, Arguments As Variant[])
>
>    Print Signal
>
> End

Hello Lee,

the program only shows me the signals of the signal noted first. 
Unfortunately. Thanks for the source code.

With kind regards

Hans


[System]
Gambas=3.10
OperatingSystem=Linux
Kernel=4.13.0-37-generic
Architecture=x86_64
Distribution=Linux Mint 18.3 Sylvia
Desktop=CINNAMON
Theme=Gtk
Language=de_DE.UTF-8
Memory=7894M

[Libraries]
Cairo=libcairo.so.2.11400.6
*DBus=libdbus-1.so.3.14.6*
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.803.0
GTK+2=libgtk-x11-2.0.so.0.2400.30
GTK+3=libgtk-3.so.0.1800.9
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.58.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.5.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-8ItKlGal30,guid=ac1a978e06f46567d3e5e50c5ab0b753
DEFAULTS_PATH=/usr/share/gconf/cinnamon.default.path
DESKTOP_SESSION=cinnamon
DISPLAY=:0
GB_GUI=gb.qt4
GDMSESSION=cinnamon
GDM_LANG=de_DE
GIO_LAUNCHED_DESKTOP_FILE=<home>/Schreibtisch/GAMBAS 3.10.0.desktop
GIO_LAUNCHED_DESKTOP_FILE_PID=6541
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_MODULES=gail:atk-bridge
GTK_OVERLAY_SCROLLING=1
HOME=<home>
INSIDE_NEMO_PYTHON=
LANG=de_DE.UTF-8
LANGUAGE=de_DE:de
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/cinnamon.mandatory.path
PATH=<home>/bin:<home>/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
QT_ACCESSIBILITY=1
QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1
QT_QPA_PLATFORMTHEME=qgnomeplatform
QT_STYLE_OVERRIDE=gtk
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2995,unix/<hostname>:/tmp/.ICE-unix/2995
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=3052
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_CURRENT_DESKTOP=X-Cinnamon
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_DESKTOP=cinnamon
XDG_SESSION_ID=c4
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7


More information about the User mailing list