|
|
@@ -0,0 +1,32 @@
|
|
|
+#!/bin/bash
|
|
|
+
|
|
|
+######################################################
|
|
|
+#### ####
|
|
|
+#### Fixes the issue making Clipboard Indicator ####
|
|
|
+#### (by Tudmotu) show "Text will be here" ####
|
|
|
+#### after restarting. ####
|
|
|
+#### HoneyBadger/MH 06-26-2024 ####
|
|
|
+######################################################
|
|
|
+
|
|
|
+PURDYDATE=$(date +'%m-%d-%Y_%I-%M-%S%P')
|
|
|
+#Clipboard Inidcator's cache path:
|
|
|
+CACHEPATH=~/.cache/[email protected]
|
|
|
+#Clipboard Indicator's cache file:
|
|
|
+CACHEFILE=registry.txt
|
|
|
+
|
|
|
+function Disable {
|
|
|
+ gnome-extensions disable [email protected]
|
|
|
+ sleep 1
|
|
|
+}
|
|
|
+
|
|
|
+function Enable {
|
|
|
+ gnome-extensions enable [email protected]
|
|
|
+}
|
|
|
+
|
|
|
+function ReplaceUTF8 {
|
|
|
+ sed -i.backup_$PURDYDATE 's/UTF8_STRING/text\/plain\;charset\=utf-8/g' $CACHEPATH/$CACHEFILE
|
|
|
+}
|
|
|
+
|
|
|
+Disable
|
|
|
+ReplaceUTF8
|
|
|
+Enable
|