X2go permissions issues on Fedora, Centos

I use X2go a ton to access remote desktops for home and work, normally I'd use Cinnamon but lately I've been having a lot of issues with stability on Cinnamon, so I switch happily to KDE since it works well with X2go. Xrdp also looks to have this issue, and this workaround should also fix that as well.

From reading online I'm also seeing info on Debian, Ubuntu, Fedora.

I've been seeing the following error on login, making me put my sudo password in 6 damn times before it'd stop asking, every time I resize a window or log in.

authentication is required to create a color managed device

This is caused by a long standing bug since fedora 23 or earlier... (https://bugzilla.redhat.com/show_bug.cgi?id=1149893),

The workaround:

sudo vim /etc/polkit-1/rules.d/colord.rules
polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.color-manager.create-device" ||
        action.id == "org.freedesktop.color-manager.create-profile" ||
        action.id == "org.freedesktop.color-manager.delete-device" ||
        action.id == "org.freedesktop.color-manager.delete-profile" ||
        action.id == "org.freedesktop.color-manager.modify-device" ||
        action.id == "org.freedesktop.color-manager.modify-profile" ||
        action.id == "org.debian.pcsc-lite.access_pcsc") &&
       subject.isInGroup("YOURUSERGROUP")) {
      return polkit.Result.YES;
   }
});

Now, change YOURUSERGROUP to a group your users are in that need to remote.

Log out, and back in and you should see the stupid window is gone!!

Hope it helps someone else, this was driving me nuts.

comments powered by Disqus