go-notify-helloworld/Makefile

38 lines
832 B
Makefile

all: go.mod
go mod tidy
go build
./go-notify-helloworld
# init the go mod files
go.mod:
go mod init go-notify-helloworld
build:
go build
run:
./go-notify-helloworld
clean:
rm -f go.* go-notify-helloworld
dbus-freedesktop-properties:
dbus-monitor --profile "interface='org.freedesktop.DBus.Properties'"
# THIS WORKS. IT ONLY SHOWS BATTERY EVENTS
dbus-battery:
dbus-monitor --profile --system "path='/org/freedesktop/UPower/devices/battery_BATT'"
# dbus-monitor --profile --system
# dbus-monitor --profile --system "sender=':1.45'"
# dbus-monitor --profile "sender='/org/freedesktop/UPower/devices/battery_BATT'"
# show everything that happens in a session
dbus-monitor-session:
dbus-monitor --session --profile
dbus-monitor-profile:
dbus-monitor --profile
dbus-monitor-system:
dbus-monitor --system --profile