mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
12 lines
568 B
Bash
12 lines
568 B
Bash
#!/bin/bash
|
|
# Plasma starts this after its nested Xwayland display is available. The session launcher still
|
|
# sees the outer compositor before startplasma, so starting its X11 helper there cannot work.
|
|
[ -n "${BL_ANDROID_CLIPBOARD:-}" ] && [ -n "${DISPLAY:-}" ] || exit 0
|
|
# The native helper dies with its parent. Keep this shell until it exits: Plasma's autostart
|
|
# launcher may itself exit immediately after starting us.
|
|
/usr/local/bin/droiddeck-clipboard "$BL_ANDROID_CLIPBOARD" &
|
|
child=$!
|
|
trap 'kill "$child" 2>/dev/null' EXIT
|
|
trap 'exit 0' TERM INT
|
|
wait "$child"
|