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
Labels
Reinforcement ✨ 强化 Issues for higher quality of being compatible Request For Help 🔮 请求帮助 That would be a great honor if anyone could offer some help

Comments

@SuperMonster003
Copy link
Owner

SuperMonster003 commented Nov 13, 2024

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

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

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

然而 shizuku 执行的命令不具备上述符合预期的特性:

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

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

此问题目前个人尚无法解决, 如其他开发者有解决方案或相关思路, 欢迎讨论.

此 issue 将增加 请求帮助 标签.

@SuperMonster003 SuperMonster003 added Reinforcement ✨ 强化 Issues for higher quality of being compatible Request For Help 🔮 请求帮助 That would be a great honor if anyone could offer some help labels Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reinforcement ✨ 强化 Issues for higher quality of being compatible Request For Help 🔮 请求帮助 That would be a great honor if anyone could offer some help
Projects
None yet
Development

No branches or pull requests

1 participant