我想在linux上运行steam,并且我不想安装xterm,有两个时刻它需要xtermxterm -T "$title" -e "cat $tmpfile; echo -n 'Press enter to continue: '; read input"和
# Fall back to sudo in a terminal
我正在尝试编写一个使用c++挂载函数的linux程序(代码如下),但是,挂载操作需要权限,并且运行该程序会抛出errno 'Operation not permitted‘(不允许操作)(使用perror打印),尝试了一些SO解决方案,但没有帮助,另一种方法是使用系统(“sudo mount .”)但我更喜欢c++函数。