Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用 shizuku 函数执行命令进入 交互模式 (Interactive Mode) 后无法结束 Shell 会话 #270

Open
SuperMonster003 opened this issue Nov 13, 2024 · 0 comments

Comments

@SuperMonster003
Copy link
Owner

shell('su --mount-master', true);

此时脚本不会立即退出, 因为 shell 函数执行的命令进入了交互模式, Shell 会话持续等待用户输入.

强制停止脚本 (如通过任务面板, 音量加按键, VSCode 插件等方法) 后, 上述 Shell 会话随之结束.

然而 shizuku 执行的命令不具备上述特性.

shizuku('su --mount-master');

当使用 shizuku 函数执行命令进入交互模式后, 强制停止脚本不会结束由此建立的 Shell 会话. 同时任务面板始终残留当前脚本任务.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant