Created attachment 5609 policy file Policy file required for mousepad where pkexec is used in place of gksu
Pardon my ignorance but I'm not really sure what I'm supposed to do with this file. I assume it's meant to be distributed and installed, but... - Where does it need to be installed to relative to $prefix? - Does it need to be processed by configure script replace hardcoded binary path and gettext domain? - Does it need to go in po/POTFILES.in for translating? - Should it be unconditionally installed even where pkexec is not installed or used?
Created attachment 5617 Git patch for pkexec This patch does all the automake magic to substitute the path to the binary and add in the translations. There are some security downsides to running mousepad as root but users typically end up doing it anyway with gksu or sudo. This just allows them to continue doing the same with pkexec while keeping all the translations in one spot.
Assuming this doesn't affect it, there is that giant red banner when run as root, warning the user, so it's probably ok :) I will try to review/test the changes soon, thanks.
Eric Koegel referenced this bugreport in commit 13d1a9541461fe5bcd95f24f230229e56ff7e6d7 Add pkexec policy (Bug #11088) https://git.xfce.org/apps/mousepad/commit?id=13d1a9541461fe5bcd95f24f230229e56ff7e6d7