Mousepad needs a pkexec policy

Bug #1358360 reported by Elfy
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
xubuntu-default-settings (Ubuntu)
Fix Released

Bug Description

Due to the removal of gksu from seed and the use of pkexec moving forward, a policy file is required.

Revision history for this message
Elfy (elfy) wrote :
Revision history for this message
In , Elfy (elfy) wrote :

Created attachment 5609
policy file

Policy file required for mousepad where pkexec is used in place of gksu

Changed in mousepad:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
In , G-matt-8 (g-matt-8) wrote :

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/ for translating?
- Should it be unconditionally installed even where pkexec is not installed or used?

Elfy (elfy)
affects: mousepad (Ubuntu) → xubuntu-default-settings (Ubuntu)
Changed in xubuntu-default-settings (Ubuntu):
status: New → Fix Released
Revision history for this message
In , Eric Koegel (eric-koegel) wrote :

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.

Revision history for this message
In , G-matt-8 (g-matt-8) wrote :

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.

Revision history for this message
In , Gitbot (gitbot) wrote :

Eric Koegel referenced this bugreport in commit 13d1a9541461fe5bcd95f24f230229e56ff7e6d7

Add pkexec policy (Bug #11088)

Changed in mousepad:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.