From 7f0db00a5a8304ce657fd90215ef85469bc8af5a Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Fri, 8 Oct 2021 01:12:56 +0200 Subject: [PATCH] Delay to fix race condition when copying clipboards. --- _desktop/clipboard/clipboard/run | 1 + _desktop/clipboard/primary/run | 1 + _desktop/clipboard/secondary/run | 1 + 3 files changed, 3 insertions(+) diff --git a/_desktop/clipboard/clipboard/run b/_desktop/clipboard/clipboard/run index e737925..905a18f 100755 --- a/_desktop/clipboard/clipboard/run +++ b/_desktop/clipboard/clipboard/run @@ -13,6 +13,7 @@ xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \ --input < "$SEL" # something else grabbed the selection. pull it over here: +sleep 0.2 xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \ --output > "$SEL".new # see above: diff --git a/_desktop/clipboard/primary/run b/_desktop/clipboard/primary/run index e737925..905a18f 100755 --- a/_desktop/clipboard/primary/run +++ b/_desktop/clipboard/primary/run @@ -13,6 +13,7 @@ xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \ --input < "$SEL" # something else grabbed the selection. pull it over here: +sleep 0.2 xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \ --output > "$SEL".new # see above: diff --git a/_desktop/clipboard/secondary/run b/_desktop/clipboard/secondary/run index e737925..905a18f 100755 --- a/_desktop/clipboard/secondary/run +++ b/_desktop/clipboard/secondary/run @@ -13,6 +13,7 @@ xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \ --input < "$SEL" # something else grabbed the selection. pull it over here: +sleep 0.2 xsel --nodetach --logfile /dev/stdout --"$(basename "`pwd`")" \ --output > "$SEL".new # see above: