Ubuntu Snap的开发者模式

Ubuntu 16.04 LTS可以使用Snap命令来安装snap软件包。通常的命令语法如下:

snap install <包名>

但snap命令的–devmode选项是很有趣的。

snap install --devmode <包名>

之前说过,snap包默认是与系统隔离开来,在沙盒环境中运行,访问系统受到限制,这种模式被称为强制模式(enforcing mode)。而–devmode就是开发者模式(developer mode),用这个选项安装的snap软件不受到沙盒环境的监禁,它继承当前用户的权限,这种模式也被称为抗议模式(complain mode)。

–devmode是提供给开发者用的,可以让他们明白自己的snap软件在底层所能做的事。普通用户请勿使用开发者模式。

为这篇文章评分
[Total: 1 Average: 3]

Leave a Reply

Your email address will not be published.

The maximum upload file size: 2 MB. You can upload: image, audio, video, document, spreadsheet, interactive, text, archive, code, other. Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded. Drop file here