This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin polkit/udisk issue.

Tags: None
(comma "," separated)
joder
Registered Member
Posts
17
Karma
0
OS

Dolphin polkit/udisk issue.

Sat Mar 31, 2018 8:30 am
First of all this is on a opensuse Tumbleweed system.

This is my fstab config:

Code: Select all
UUID=92ba84e8-9280-4fd7-8765-434c8f9fcf87 /                    ext4       acl,user_xattr        1 1
tmp     /tmp      tmpfs rw,mode=1777 0 0
vartmp  /var/tmp  tmpfs rw,mode=1777 0 0
UUID=01D29A03B65EEF20 /home/joder/Discos/WD640 ntfs-3g    noatime,user          0 0
/mnt/1GB.swap none swap sw 0 0


A couple of months back i got feed up with Dolphin asking me for the root password to mount NTFS partitions AND not having write permission on them. I don't want them mounted at boot time but on demand when i click on them, without the prompt and write permissions.

I found a way to do so using a polkit/udisk rule here https://www.dynacont.net/documentation/linux/udisks2_polkit_Allow_unauthenticated_mounting/ :

Code: Select all
polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
         action.id == "org.freedesktop.udisks2.filesystem-mount") &&
        subject.isInGroup("wheel")) {
        return polkit.Result.YES;
    }
});


This rule/script has been working wonderfully with no issues till recently. Right now i am getting this every time i click on any of the NTFS disks not mounted in Dolphin:

Image

Recommendations from here https://ask.fedoraproject.org/en/question/9871/mount-ntfs-partition-on-demand-without-password/, editing PolicyKit rule directly
Code: Select all
/usr/share/polkit-1/actions/org.freedesktop.udisks2.policy
does not work. I prefer the script though.

The disk/partition does get mounted with write permissions , but i have to click again on said disk/partition or restart Dolphin.

So i am not sure what changed or where, the system opensuse or Dolphin? May be a bug? Any clues?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], rockscient, Yahoo [Bot]