wait on error when started via desktop file
This commit is contained in:
parent
f9ab379abc
commit
5fe430b3f2
3 changed files with 10 additions and 1 deletions
8
desktop/remote-touchpad-wait-on-error
Normal file
8
desktop/remote-touchpad-wait-on-error
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
remote-touchpad "$@"
|
||||||
|
if [ $? -eq 1 ]; then
|
||||||
|
echo
|
||||||
|
read -n 1 -s -r -p "Press any key to close"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
@ -4,6 +4,6 @@ Type=Application
|
||||||
Name=Remote Touchpad
|
Name=Remote Touchpad
|
||||||
Comment=Control mouse and keyboard from a smartphone
|
Comment=Control mouse and keyboard from a smartphone
|
||||||
Terminal=true
|
Terminal=true
|
||||||
Exec=remote-touchpad
|
Exec=remote-touchpad-wait-on-error
|
||||||
Icon=remote-touchpad
|
Icon=remote-touchpad
|
||||||
Categories=Network;RemoteAccess;ConsoleOnly;
|
Categories=Network;RemoteAccess;ConsoleOnly;
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,7 @@
|
||||||
"build-commands" : [
|
"build-commands" : [
|
||||||
". /usr/lib/sdk/golang/enable.sh; env GOPATH=\"$(pwd)\" go build github.com/unrud/remote-touchpad",
|
". /usr/lib/sdk/golang/enable.sh; env GOPATH=\"$(pwd)\" go build github.com/unrud/remote-touchpad",
|
||||||
"install -Dm0755 -t /app/bin remote-touchpad",
|
"install -Dm0755 -t /app/bin remote-touchpad",
|
||||||
|
"install -Dm0755 -t /app/bin src/github.com/unrud/remote-touchpad/desktop/remote-touchpad-wait-on-error",
|
||||||
"install -Dm0644 -t /app/share/appdata src/github.com/unrud/remote-touchpad/desktop/remote-touchpad.appdata.xml",
|
"install -Dm0644 -t /app/share/appdata src/github.com/unrud/remote-touchpad/desktop/remote-touchpad.appdata.xml",
|
||||||
"install -Dm0644 -t /app/share/applications src/github.com/unrud/remote-touchpad/desktop/remote-touchpad.desktop",
|
"install -Dm0644 -t /app/share/applications src/github.com/unrud/remote-touchpad/desktop/remote-touchpad.desktop",
|
||||||
"install -Dm0644 src/github.com/unrud/remote-touchpad/desktop/remote-touchpad_64.png /app/share/icons/hicolor/64x64/apps/remote-touchpad.png",
|
"install -Dm0644 src/github.com/unrud/remote-touchpad/desktop/remote-touchpad_64.png /app/share/icons/hicolor/64x64/apps/remote-touchpad.png",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue