用 Flatseal 图形化管理 Flatpak 应用的权限
Flatpak 权限
![](/data/attachment/album/202111/30/135209fbcvqnvnzidvg2hw.jpg)


新版本的安卓系统让你对单个应用的访问和权限有了更精细的控制。这一点至关重要，因为许多应用曾经（正在）滥用系统权限。下载一个天气应用，它将要求访问你的通话记录，好像这与天气有什么关系一样。


为什么我在说安卓应用的权限？因为这可能与此应用的功能有关。


你可能已经知道 [什么是 Flatpak](https://itsfoss.com/what-is-flatpak/)。这些都是沙盒应用，可以选择访问系统资源，如文件存储、网络接口等。


就像 Android 一样，你可以控制 Flatpak 应用对系统资源的访问。默认情况下，这要用 [Flatpak 命令](https://itsfoss.com/flatpak-guide/)，不是每个人都能适应它。


因此，有一个叫做 Flatseal 的小工具，可以让你在应用层面上管理和控制 Flatpak 的权限。


### Flatseal


![Flatseal](/data/attachment/album/202111/30/135215vcsnss571odozi5s.png)


[Flatseal](https://flathub.org/apps/details/com.github.tchx84.Flatseal) 是一个图形化的工具，用于审查和修改你的 Flatpak 应用的权限。这使得事情比通过命令要容易得多。


Flatseal 会列出所有已安装的 Flatpak 应用。当你选择一个应用，你可以看到所有的权限。很容易发现已启用的权限，如果你愿意，你可以禁用它。


例如，Ksnip 是一个屏幕截图工具，但它也有联网权限，可以用 Imgur 等在线服务分享截图。如果你不需要它，你可以禁用它。


![Control permissions of individual Flatpak apps](/data/attachment/album/202111/30/135215n96c39uocu5tdffa.png)


如果不出意外，看看一个应用有什么样的权限是很有趣的。例如，你可以看到 ksnip 有在后台运行的能力（这样你就可以用键盘快捷键进行截图）。


![](/data/attachment/album/202111/30/135215ged2v2bvtivsg4tj.png)


### 安装 Flatseal


既然管理的都是 Flatpak，那么 Flatseal 作为一个 Flatpak 包来使用也是合理的。


在 Fedora 上，如果已经添加 Flathub 仓库，你可以从软件中心安装它。


![Installing Flatseal from the software center](/data/attachment/album/202111/30/135216vg3r7yn55r9y5ssn.png)


否则，命令行总是可以帮助你。



```
flatpak install flathub com.github.tchx84.Flatseal

```

### 你真的需要控制权限吗？


这是一个主观的问题，完全取决于你。值得庆幸的是，到目前为止，桌面 Linux 应用并不像 Android 应用那样滥用权限。


一个普通用户通常不会去管这些事情，这完全没问题。


然而，如果你对这些事情过于谨慎，或者你找到一个很好的理由，Flatseal 提供了一个简单的选择。


你还应该小心你所改变的权限。如果你禁用了对应用的运作至关重要的权限，在使用应用时肯定会造成麻烦。


所以，总的来说，这不是一个普通用户要使用的东西。




---


via: <https://itsfoss.com/flatseal/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
The newer versions of Android give you more granular control over the access and permission an individual app can have. This is vital because many applications were (are) abusing the system permissions. Download a weather app and it will ask to access your call logs as if that has anything to do with the weather.

Why am I talking about Android app permissions? Because that is something you could relate with this application’s functioning.

You probably already know [what Flatpak is](https://itsfoss.com/what-is-flatpak/). These are sandboxed applications with selected access to system resources like file storage, network interface etc.

Just like Android, you can control the access to system resources by Flatpak applications. By default, that happens with [Flatpak commands](https://itsfoss.com/flatpak-guide/) and not everyone can be comfortable with it.

And hence, there is this tiny utility called Flatseal that allows you to manage and control the Flatpak permissions at application level.

## Flatseal

[Flatseal](https://flathub.org/apps/details/com.github.tchx84.Flatseal) is a graphical utility to review and modify permissions your Flatpak applications have got. This makes things a lot easier than going through the commands.

Flatseal lists all the installed Flatpak applications. When you select one, you can see all the permissions. The enabled permissions can be easily spotted and if you want, you can disable them.

For example, Ksnip is a screenshot utility and it also has networking access to share the screenshots with online services like Imgur. If you do not need it, you can disable it.

If nothing else, it is interesting to see what kind of permissions an application has. For example, you can see that ksnip has the ability to run in the background (so that you can use it for taking screenshots with keyboard shortcuts).

## Installing Flatseal

Since it’s all about Flatpak, it only makes sense that Flatseal is available as a Flatpak package.

On Fedora, if the Flathub repo is added, you can install it from the software center.

Otherwise, the command line is always there to help you.

`flatpak install flathub com.github.tchx84.Flatseal`


## Do you need to control permissions?

That’s a subjective question and it totally depends on you. Thankfully, the desktop Linux apps are not as abusive as Android apps so far.

An average user usually does not bother with these things, which is fine.

However, if you are overly cautious about these things or you find a good reason, Flatseal provides the easy option.

You should also be careful about what permissions you are changing. If you disable a permission crucial to the functioning of the application, it will surely cause trouble while using the application.

So, overall, this is not something an average user is going to use.