about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--osk0-wvkbd-wrapper.desktop2
-rwxr-xr-xosk0-wvkbd-wrapper.sh2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 85aa6c1..a0a3d43 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 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/
+	cp osk0-wvkbd-wrapper.sh /usr/bin/
+	cp dbus_request_name /usr/bin/
 
 link:
 	test -L /etc/alternatives/Phosh-OSK && ln -fs /usr/share/applications/osk0-wvkbd-wrapper.desktop /etc/alternatives/Phosh-OSK
diff --git a/osk0-wvkbd-wrapper.desktop b/osk0-wvkbd-wrapper.desktop
index ac1ef46..ea89481 100644
--- a/osk0-wvkbd-wrapper.desktop
+++ b/osk0-wvkbd-wrapper.desktop
@@ -2,7 +2,7 @@
 Type=Application
 Name=osk0 Wayland Virtual Keyboard wrapper
 Comment=Launches wvkbd when needed
-Exec=/usr/bin/osk0-wvkbd-wrapper --allow-replacement
+Exec=/usr/bin/osk0-wvkbd-wrapper.sh --allow-replacement
 Categories=System;GNOME;Core;
 OnlyShowIn=Phosh;
 Icon=input-keyboard-symbolic
diff --git a/osk0-wvkbd-wrapper.sh b/osk0-wvkbd-wrapper.sh
index ccca980..a9796a7 100755
--- a/osk0-wvkbd-wrapper.sh
+++ b/osk0-wvkbd-wrapper.sh
@@ -29,7 +29,7 @@ close() {
 
 dbus_request_name 'sm.puri.OSK0' &
 pid="$(echo $!)"
-dbus-monitor "interface='sm.puri.OSK0',member='SetVisible'" |
+stdbuf -oL dbus-monitor "interface='sm.puri.OSK0',member='SetVisible'" |
 	while read -r line; do
 		echo "$line" | grep -i "boolean.*true" && open
 		echo "$line" | grep -i "boolean.*false" && close