Skip to content

Commit

Permalink
fixed sed command
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyre221 authored Sep 14, 2023
1 parent e2b3c86 commit e12adc8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e12adc8

Please sign in to comment.