From 7f7b8700e9954f2673dc4148cc93757d6f8028ce Mon Sep 17 00:00:00 2001 From: Caten Date: Fri, 6 Feb 2026 16:22:27 +0800 Subject: [PATCH] Microphone fix and link drop --- lib/main.dart | 7 ++++++- lib/workflow.dart | 12 ++---------- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 2cf2167..1399ab0 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -618,7 +618,12 @@ sed -i -E "s@^(VNC_RESOLUTION)=.*@\\1=${w}x${h}@" \$(command -v startvnc)"""); pactl load-module module-null-sink sink_name=AndroidSink sink_properties=device.description="Android_Audio_Stream" pactl load-module module-remap-source master=AndroidSink.monitor source_name=AndroidMic source_properties=device.description="Android_Virtual_Mic" pkill -f tiny_virtual_mic -tiny_virtual_mic $path AndroidSink &"""); +tiny_virtual_mic $path AndroidSink & +sleep 0.5 +SINK_INPUT_ID=\$(LC_ALL=C pactl list sink-inputs | grep -B 20 "application.name = \\"AndroidStream\\"" | grep "Sink Input #" | awk '{print \$3}' | tr -d '#') +if [ ! -z "\$SINK_INPUT_ID" ]; then + pactl move-sink-input \$SINK_INPUT_ID AndroidSink +fi"""); G.pageIndex.value = 0; } } else { diff --git a/lib/workflow.dart b/lib/workflow.dart index c88396a..3a0fe8e 100644 --- a/lib/workflow.dart +++ b/lib/workflow.dart @@ -363,12 +363,8 @@ class D { {"name":"卸载Kdenlive", "command":"sudo apt autoremove --purge -y kdenlive"}, {"name":"安装科学计算软件Octave", "command":"sudo apt update && sudo apt install -y octave"}, {"name":"卸载Octave", "command":"sudo apt autoremove --purge -y octave"}, - {"name":"安装WPS", "command":r"""sudo dpkg --configure -a && sudo aptss update && sudo aptss install -y wps-office"""}, - {"name":"卸载WPS", "command":"sudo apt autoremove --purge -y wps-office"}, - {"name":"安装CAJViewer", "command":"wget https://download.cnki.net/cajPackage/tongxinUOS/signed_cajviewer_9.5.0-25268_arm64.deb -O /tmp/caj.deb && sudo apt update && sudo apt install -y /tmp/caj.deb; rm /tmp/caj.deb"}, - {"name":"卸载CAJViewer", "command":"sudo apt autoremove --purge -y cajviewer"}, - {"name":"安装亿图图示", "command":"wget https://cc-download.wondershare.cc/business/prd/edrawmax_13.1.0-1_arm64_binner.deb -O /tmp/edraw.deb && sudo apt update && sudo apt install -y /tmp/edraw.deb libidn12 && bash /home/tiny/.local/share/tiny/edraw/postinst; rm /tmp/edraw.deb"}, - {"name":"卸载亿图图示", "command":"sudo apt autoremove --purge -y edrawmax libldap-2.4-2"}, + {"name":"安装旧版CAJViewer", "command":"wget https://download.cnki.net/net.cnki.cajviewer_1.3.20-1_arm64.deb -O /tmp/caj.deb && sudo apt update && sudo apt install -y /tmp/caj.deb && bash /home/tiny/.local/share/tiny/caj/postinst; rm /tmp/caj.deb"}, + {"name":"卸载CAJViewer", "command":"sudo apt autoremove --purge -y net.cnki.cajviewer && bash /home/tiny/.local/share/tiny/caj/postrm"}, {"name":"安装QQ", "command":"""wget \$(curl -s https://cdn-go.cn/qq-web/im.qq.com_new/latest/rainbow/linuxConfig.js | grep -oP '"armDownloadUrl":{[^}]*"deb":"\\K[^"]+') -O /tmp/qq.deb && sudo apt update && sudo apt install -y /tmp/qq.deb && sed -i 's#Exec=/opt/QQ/qq %U#Exec=/opt/QQ/qq --no-sandbox %U#g' /usr/share/applications/qq.desktop; rm /tmp/qq.deb"""}, {"name":"卸载QQ", "command":"sudo apt autoremove --purge -y linuxqq"}, {"name":"安装微信", "command":"wget https://dldir1v6.qq.com/weixin/Universal/Linux/WeChatLinux_arm64.deb -O /tmp/wechat.deb && sudo apt update && sudo apt install -y /tmp/wechat.deb && echo '安装完成。如果你使用微信只是为了传输文件,那么可以考虑使用支持SAF的文件管理器(如:质感文件),直接访问小小电脑所有文件。'; rm /tmp/wechat.deb"}, @@ -392,10 +388,6 @@ class D { {"name":"Uninstall Kdenlive", "command":"sudo apt autoremove --purge -y kdenlive"}, {"name":"Install LibreOffice", "command":"sudo apt update && sudo apt install -y libreoffice"}, {"name":"Uninstall LibreOffice", "command":"sudo apt autoremove --purge -y libreoffice"}, - {"name":"Install WPS", "command":r"""sudo dpkg --configure -a && sudo aptss update && sudo aptss install -y wps-office"""}, - {"name":"Uninstall WPS", "command":"sudo apt autoremove --purge -y wps-office"}, - {"name":"Install EdrawMax", "command":"""wget https://cc-download.wondershare.cc/business/prd/edrawmax_13.1.0-1_arm64_binner.deb -O /tmp/edraw.deb && sudo apt update && sudo apt install -y /tmp/edraw.deb libidn12 && bash /home/tiny/.local/share/tiny/edraw/postinst && sudo sed -i 's///g' /opt/apps/edrawmax/config/settings.xml; rm /tmp/edraw.deb"""}, - {"name":"Uninstall EdrawMax", "command":"sudo apt autoremove --purge -y edrawmax libldap-2.4-2"}, {"name":"Enable Recycle Bin", "command":"sudo apt update && sudo apt install -y gvfs && echo 'Restart the app to use Recycle Bin.'"}, {"name":"Clean Package Cache", "command":"sudo apt clean"}, {"name":"Power Off", "command":"stopvnc\nexit\nexit"},