FS#33243 - [unetbootin] cannot run with pkexec - missing policy file

Attached to Project: Community Packages
Opened by Mihai Coman (z0id) - Sunday, 30 December 2012, 13:23 GMT
Last edited by Alexander F. Rødseth (xyproto) - Sunday, 06 January 2013, 23:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

* description:

'/usr/bin/unetbooting' launches 'pkexec /usr/bin/unetbootin.elf', but this fails with a X server error. pkexec does not run X apps without allow_gui set.

* package version(s)

unetbootin 581-1

* steps to reproduce:

Launch unetbootin.

* fix:

attached /usr/share/polkit-1/actions/org.archlinux.pkexec.unetbootin.policy

This makes using gksu, kdesu, etc, redundant.
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Sunday, 06 January 2013, 23:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  Added policy file.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 January 2013, 09:27 GMT
Thanks for reporting and for the fix!

I tried applying the fix, and checked in the changes to svn, but when running "unetbootin" (which runs pkexec /usr/bin/unetbootin.elf) nothing happens here. (pekwm, alt-f2, unetbootin)
When starting the same script from the commandline, it asks me for a password, then says "cannot connect to X server":

==== AUTHENTICATING FOR org.archlinux.pkexec.unetbootin ===
Authentication is required to run Unetbootin
Authenticating as: User (username)
Password:
==== AUTHENTICATION COMPLETE ===
Invalid MIT-MAGIC-COOKIE-1 keyunetbootin.elf: cannot connect to X server :0

Here are the updated files for unetbootin-581-2 (should appear shortly if it's still at 581-1 there):
https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/unetbootin

Any idea what causes this? Is this only a problem with my polkit setup? Would several other users be affected by this too?

Thanks.
Comment by Mihai Coman (z0id) - Thursday, 03 January 2013, 11:55 GMT
See  FS#33244 :
Comment by Alexander F. Rødseth (xyproto) - Sunday, 06 January 2013, 23:39 GMT
Added the policy file and updated the package. Will close this one and follow  FS#33244  instead to keep track of the issue with pkexec. Thank you.

Loading...