fix_Clipboard_Indicator-UTF8.sh 899 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. ######################################################
  3. #### ####
  4. #### Fixes the issue making Clipboard Indicator ####
  5. #### (by Tudmotu) show "Text will be here" ####
  6. #### after restarting. ####
  7. #### HoneyBadger/MH 06-26-2024 ####
  8. ######################################################
  9. PURDYDATE=$(date +'%m-%d-%Y_%I-%M-%S%P')
  10. #Clipboard Inidcator's cache path:
  11. CACHEPATH=~/.cache/[email protected]
  12. #Clipboard Indicator's cache file:
  13. CACHEFILE=registry.txt
  14. function Disable {
  15. gnome-extensions disable [email protected]
  16. sleep 1
  17. }
  18. function Enable {
  19. gnome-extensions enable [email protected]
  20. }
  21. function ReplaceUTF8 {
  22. sed -i.backup_$PURDYDATE 's/UTF8_STRING/text\/plain\;charset\=utf-8/g' $CACHEPATH/$CACHEFILE
  23. }
  24. Disable
  25. ReplaceUTF8
  26. Enable