Thunar Mounting Internal Drives

This happens after emerging thunar in gentoo and funtoo for myself. Everytime.

Where I go to mount a drive with thunar I get a “Not Authorized” error.

To correct this we need to create a rule for polkit (so install polkit if you haven’t already).

This will cover the new version of polkit where the rules are now javascript based. This means the .pkla files we made before will no longer work.

To fix we create a file in /etc/polkit-1/rules.d/XX.rules where XX can be 10 or some other number.

polkit.addRule(function(action, subject) {
               if ("org.freedesktop.udisks") == 0) {
                       return polkit.Result.YES;

This allws anyone to use udisks. So yeah.