selinux tip, remove rust dep 'selinux'

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-10-22 14:22:15 +08:00
parent 4633a0450c
commit 5c23dfd633
6 changed files with 72 additions and 130 deletions

View File

@@ -379,7 +379,8 @@ class _DesktopHomePageState extends State<DesktopHomePage>
// }
} else if (Platform.isLinux) {
final LinuxCards = <Widget>[];
if (bind.isSelinuxEnabled()) {
if (bind.isSelinuxEnforcing()) {
// Check is SELinux enforcing, but show user a tip of is SELinux enabled for simple.
final keyShowSelinuxHelpTip = "show-selinux-help-tip";
if (bind.mainGetLocalOption(key: keyShowSelinuxHelpTip) != 'N') {
LinuxCards.add(buildInstallCard(