MANIFEST | 1 + liveusb-creator.policy | 16 ++++++++++++++++ setup.py | 6 +++++- 3 files changed, 22 insertions(+), 1 deletion(-)
New commits: commit 6019c53be1f76e5ae64aff49eafc6d0347dc441d Author: Kushal Das <kdas@d80.(none)> Date: Wed Aug 13 21:34:18 2008 +0530
tried to write a PolicyKit policy file, which is not working btw :)
diff --git a/MANIFEST b/MANIFEST index 39a8653..e8d702d 100644 --- a/MANIFEST +++ b/MANIFEST @@ -16,3 +16,4 @@ liveusb/urlgrabber/mirror.py liveusb/urlgrabber/progress.py data/liveusb-creator.desktop data/fedora.ico +liveusb-creator.policy diff --git a/liveusb-creator.policy b/liveusb-creator.policy new file mode 100644 index 0000000..d59c880 --- /dev/null +++ b/liveusb-creator.policy @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE policyconfig PUBLIC + "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" + "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> +<policyconfig> + + <action id="org.fedoraproject.config.liveusb-creator.run-as-root"> + <description>Create a LiveUSB as supper user</description> + <message>System policy prevents the liveusb-creator application</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>auth_admin</allow_active> + </defaults> + <annotate key="org.freedesktop.PolicyKit.run-as-superuser.path">/usr/bin/liveusb-creator</annotate> + </action> +</policyconfig> diff --git a/setup.py b/setup.py index f0fb896..0f54145 100644 --- a/setup.py +++ b/setup.py @@ -53,6 +53,10 @@ else: platforms = ['Linux'], maintainer = 'Luke Macken', maintainer_email = 'lmacken@redhat.com', - data_files = [("/usr/share/applications",["data/liveusb-creator.desktop"]), ('/usr/share/pixmaps',["data/fedora.ico"])] + data_files = [("/usr/share/applications",["data/liveusb-creator.desktop"]), + ('/usr/share/pixmaps',["data/fedora.ico"]), + ('/usr/share/PolicyKit/policy',["liveusb-creator.policy"]) + ] + )
liveusb-creator@lists.stg.fedorahosted.org