Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为用户提供选择使用 GUI 或命令行安装的选项。我想把它全部放在一个脚本中,但我不知道 zenity 中是否有一个选项可以在使用 zenity 时使所有其他命令行输出静音。也许还有其他方法可以实现我想要的?我在考虑两个单独的脚本 - 一个使用 zennity,另一个使用命令行,但如果有任何变化,我将不得不更新这两个脚本......