File woeusb-ng-policy.patch of Package woeusb-ng

--- a/miscellaneous/com.github.woeusb.woeusb-ng.policy	2021-07-28 19:18:49.504940596 +0200
+++ b/miscellaneous/com.github.woeusb.woeusb-ng.policy	2021-07-28 19:18:49.520940319 +0200
@@ -2,10 +2,10 @@
 DOC: https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
 --><policyconfig>
 	<vendor>The WoeUSB Project</vendor>
-	<vendor_url>https://github.com/slacka/WoeUSB</vendor_url>
+	<vendor_url>https://github.com/WoeUSB/WoeUSB-ng</vendor_url>
 	<icon_name>woeusbgui-icon</icon_name>

-	<action id="com.github.slacka.woeusb.run-gui-using-pkexec">
+	<action id="com.github.woeusb.woeusb-ng.run-gui-using-pkexec">
 		<description>Run `woeusb` as SuperUser</description>
 		<description xml:lang="zh_TW">以超級使用者(SuperUser)身份執行 `woeusb`</description>
 		<description xml:lang="pl_PL">Uruchom `woeusb` jako root</description>
--- a/WoeUSB/utils.py	2021-10-28 16:55:35.000000000 +0300
+++ b/WoeUSB/utils.py	2021-11-15 02:41:20.222252718 +0300
@@ -338,7 +338,7 @@
         "	<vendor_url>https://github.com/slacka/WoeUSB</vendor_url>\n"
         "	<icon_name>woeusbgui-icon</icon_name>\n"
         "\n"
-        "	<action id=\"com.github.slacka.woeusb.run-gui-using-pkexec\">\n"
+        "	<action id=\"com.github.woeusb.woeusb-ng.run-gui-using-pkexec\">\n"
         "		<description>Run `woeusb` as SuperUser</description>\n"
         "		<description xml:lang=\"zh_TW\">以超級使用者(SuperUser)身份執行 `woeusb`</description>\n"
         "		<description xml:lang=\"pl_PL\">Uruchom `woeusb` jako root</description>\n"
@@ -356,7 +356,7 @@
         "		<annotate key=\"org.freedesktop.policykit.exec.path\">/usr/local/bin/woeusbgui</annotate>\n"
         "   		<annotate key=\"org.freedesktop.policykit.exec.allow_gui\">true</annotate>\n"
         "	</action>\n"
-        "	<action id=\"com.github.slacka.woeusb.run-gui-using-pkexec-local\">\n"
+        "	<action id=\"com.github.woeusb.woeusb-ng.run-gui-using-pkexec-local\">\n"
         "		<description>Run `woeusb` as SuperUser</description>\n"
         "		<description xml:lang=\"zh_TW\">以超級使用者(SuperUser)身份執行 `woeusb`</description>\n"
         "		<description xml:lang=\"pl_PL\">Uruchom `woeusb` jako root</description>\n"
@@ -377,7 +377,7 @@
         "</policyconfig>"
     )
     for action in dom.getElementsByTagName('action'):
-        if action.getAttribute('id') == "com.github.slacka.woeusb.run-gui-using-pkexec":
+        if action.getAttribute('id') == "com.github.woeusb.woeusb-ng.run-gui-using-pkexec":
             for annotate in action.getElementsByTagName('annotate'):
                 if annotate.getAttribute('key') == "org.freedesktop.policykit.exec.path":
                     annotate.childNodes[0].nodeValue = path
openSUSE Build Service is sponsored by