about summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2023-05-24 20:21:17 -0400
committerZach DeCook <zachdecook@librem.one>2023-05-24 20:21:17 -0400
commitc5983b06a787f7c0c42c718336574dca030bc312 (patch)
tree8c44357c15176144816d66e89d544fe058fbd741 /Makefile
parentaf9302cfc1089be0c1fd0dd29c79c4f81d85e450 (diff)
downloadosk0-wvkbd-wrapper-c5983b06a787f7c0c42c718336574dca030bc312.tar.gz
dbus_request_name: Request the dbus name so the keyboard button will be active in phosh
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8945ff3..85aa6c1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
-install:
+install: dbus_request_name
+	cp dbus_request_name /usr/bin/
 	cp osk0-wvkbd-wrapper.sh /usr/bin/
 	cp osk0-wvkbd-wrapper.desktop /usr/share/applications/
 
 link:
 	test -L /etc/alternatives/Phosh-OSK && ln -fs /usr/share/applications/osk0-wvkbd-wrapper.desktop /etc/alternatives/Phosh-OSK
 	test /etc/alternatives/Phosh-OSK -ef /usr/share/applications/sm.puri.OSK0.desktop || ln -fs /usr/share/applications/osk0-wvkbd-wrapper.desktop /usr/share/applications/sm.puri.OSK0.desktop
+
+dbus_request_name: dbus_request_name.c
+	gcc dbus_request_name.c `pkg-config --cflags --libs dbus-1` -o dbus_request_name