go-notify-helloworld/Makefile

38 lines
832 B
Makefile
Raw Normal View History

all: go.mod
go mod tidy
go build
./go-notify-helloworld
2022-10-07 18:18:32 -05:00
# init the go mod files
go.mod:
2022-10-07 18:18:32 -05:00
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