From e12adc8f04799b4fabe58a9472c9580946ff430f Mon Sep 17 00:00:00 2001 From: Nyre221 <104171042+Nyre221@users.noreply.github.com> Date: Thu, 14 Sep 2023 20:19:59 +0200 Subject: [PATCH] fixed sed command --- .../quick_view_package/dolphin_quick_view_shortcut.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package creation/quick_view_package/dolphin_quick_view_shortcut.sh b/package creation/quick_view_package/dolphin_quick_view_shortcut.sh index 37305ff..83f2703 100644 --- a/package creation/quick_view_package/dolphin_quick_view_shortcut.sh +++ b/package creation/quick_view_package/dolphin_quick_view_shortcut.sh @@ -9,7 +9,7 @@ echo -e "dbus-send not found.\nClosing..." exit 1 fi -original_clipboard_content="$(dbus-send --session --print-reply --type=method_call --dest=org.kde.klipper /klipper org.kde.klipper.klipper.getClipboardContents | grep -v "method return time=" | sed -r '1s/^\s+//g' | sed ' s/^`string "//' | sed '$ s/"$//')" +original_clipboard_content="$(dbus-send --session --print-reply --type=method_call --dest=org.kde.klipper /klipper org.kde.klipper.klipper.getClipboardContents | grep -v "method return time=" | sed -r '1s/^\s+//g' | sed ' s/^string "//' | sed '$ s/"$//')" sleep 0.1 # "clear" the clipboard. # by using setClipboardContents the clipboard history is not cancelled and the last copied element can be restored later.