dolphin左侧最下方的设备中的硬盘,访问时要求输入密码

有什么GUI办法可以不用输入密码?或者只输入一次密码后就再也不需要密码?

我目前只能通过/etc/fstab挂载硬盘的方式来避免输入密码,但这需要使用命令行操作~

你能否检查“细节”中隐藏的内容?

创建文件/etc/polkit-1/localauthority/50-local.d/10-udisks.pkla:

[udisks2]
Identity=unix-group:$your_user_name
Action=org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes

这样 PolicyKit 应该停止抱怨权限问题。

看来必须要通过命令行来解决~

KDE 其实存在一个 Polkit KCM,但是似乎缺乏维护……
System / Polkit KDE Configuration · GitLab


编译指南

检查依赖项

确保你安装了以下软件包:

sudo apt install cmake git extra-cmake-modules g++ libkf5i18n-dev libkf5kcmutils-dev libkf5auth-dev gettext libpolkit-qt5-1-dev pkg-config

编译过程

git clone https://invent.kde.org/system/polkit-kde-kcmodules-1.git
cd polkit-kde-kcmodules-1
mkdir build
cd build
cmake ..
make
sudo cmake --install . --prefix "/usr"
reboot

卸载

cd polkit-kde-kcmodules-1/build
sudo make uninstall

转到”系统设置“中的”动作策略“部分,选中欲修改的动作(本例中为org.freedesktop.udisks2.filesystem-mount-system),点击”add“按钮以添加本地策略,在”title“后填入策略的名称,点击”add“按钮添加该策略适用的用户或组(建议你选择与你用户名名字相同的用户组),最后点击”应用“按钮。
警告:不要修改默认的授权策略,它们可能会由于软件包更新而被覆盖。
@yichuang 这能否被称为GUI方法?

如果这个编辑过程是必须的,那么和我想象的GUI方法还是有一些不同~

我期望GUI不涉及命令~

From This week in KDE: performance improvements galore – Adventures in Linux and KDE

You can edit fstab via the KDE Partition Manager, however I think there should be an easier option to do this.
At least some of the Partition Manager features could be integrated into Plasma itself. For example, auto-mounting, unmounting (not “removing”, it’s not the same thing) and writing images to a device – all of these would be really useful.

这是期望?

这是一个功能请求。