This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Tested with ArchLinux. Cures dolphin/nautilus error "Not authorized to perform action" upon mounting. | |
// Sources: http://smcv.pseudorandom.co.uk/2015/why_polkit/ and https://github.com/coldfix/udiskie/wiki/Permissions | |
// 1. make sure you are in "storage" group | |
// 2. create /etc/polkit-1/rules.d/50-udiskie.rules file with the following content | |
polkit.addRule(function(action, subject) { | |
var YES = polkit.Result.YES; | |
// NOTE: there must be a comma at the end of each line except for the last: | |
var permission = { | |
// required for udisks1: | |
// "org.freedesktop.udisks.filesystem-mount": YES, |