From af9302cfc1089be0c1fd0dd29c79c4f81d85e450 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 20 May 2023 18:36:36 -0400 Subject: [PATCH] Desktop file: Add this and create Makefile for installing and linking it --- Makefile | 7 +++++++ osk0-wvkbd-wrapper.desktop | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 Makefile create mode 100644 osk0-wvkbd-wrapper.desktop diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8945ff3 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +install: + 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 diff --git a/osk0-wvkbd-wrapper.desktop b/osk0-wvkbd-wrapper.desktop new file mode 100644 index 0000000..ac1ef46 --- /dev/null +++ b/osk0-wvkbd-wrapper.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Name=osk0 Wayland Virtual Keyboard wrapper +Comment=Launches wvkbd when needed +Exec=/usr/bin/osk0-wvkbd-wrapper --allow-replacement +Categories=System;GNOME;Core; +OnlyShowIn=Phosh; +Icon=input-keyboard-symbolic +NoDisplay=true +X-GNOME-Autostart-Phase=Panel +X-GNOME-Provides=inputmethod +X-GNOME-Autostart-Notify=true +X-GNOME-AutoRestart=true -- 2.45.2