-
I'm newly with making an PopClip extension and try to modify the official qrcode extension to suit my need. I couldn't disable the loading spin after triggering the action. Below is my shell script and qrcode.shtext=$POPCLIP_TEXT
encoded_text=$(echo "${text}" | perl -MURI::Escape -wlne 'print uri_escape ($_)' | perl -pe 's/\n/%0A/')
qr_image="/tmp/qrimage.png"
curl -Lso "${qr_image}" "http://mobile.qq.com/qrcode?url=${encoded_text}"
qlmanage -p "${qr_image}" && rm ${qr_image} Config.plist<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Actions</key>
<array>
<dict>
<key>Image File</key>
<string>qrcode.png</string>
<key>Shell Script File</key>
<string>qrcode.sh</string>
<key>Title</key>
<string>QR Code</string>
</dict>
</array>
<key>Extension Identifier</key>
<string>blog.naiwen.top</string>
<key>Extension Description</key>
<string>Generate and display QR code.</string>
<key>Extension Name</key>
<string>Tencent Api QR Code</string>
<key>Long Running</key>
<false/>
<key>Required Software Version</key>
<integer>693</integer>
</dict>
</plist> |
Beta Was this translation helpful? Give feedback.
Answered by
pilotmoon
Dec 9, 2020
Replies: 1 comment
-
The spinner appears automatically whenever an extension takes longs than half a second or so to complete. There isn't currently any setting that will disable it. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pilotmoon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The spinner appears automatically whenever an extension takes longs than half a second or so to complete. There isn't currently any setting that will disable it.