WoeUSB-ng
WoeUSB-ng copied to clipboard
Policy was updated, please run this program again
Good Habit Checklist for Issue Reporting
Checkout Mastering Markdown · GitHub Guides if you needs help on the GitHub-flavored Markdown syntax. You may remove sections and contents that don't apply.
- [ ] I've searched the issue tracker and is pretty sure that there's no duplicate issue already filed
- [ ] I've built the latest development snapshot using the instructions in README and verified that the issue can still be reproduced (for bug reports)
Issue Reproduce Instructions
- Make sure you are on Fedora 38
- Launch WoeUSB by running
woeusbgui
Expected Behavior
Should be able to run the gui without errors
Current Behavior
WoeUSB errors with message "Policy was updated, please run this program again"
Info of My Environment
WoeUSB Version
0.2.12
WoeUSB Source
Built using:
sudo dnf install git p7zip p7zip-plugins python3-pip python3-wxpython4
sudo pip3 install WoeUSB-ng
Information about the Operating System
Description: Fedora release 38 (Thirty Eight)
Same problem for me
Same problem but I found a workaround: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY woeusbgui
If you see this error, it may be caused by any number of errors that is hidden by the exception handler that causes this message, "policy was updated".
To discover the true issue, modify the woeusbgui code as follows,
diff --git a/WoeUSB/woeusbgui b/WoeUSB/woeusbgui
index ea4f17c..e357a8f 100755
--- a/WoeUSB/woeusbgui
+++ b/WoeUSB/woeusbgui
@@ -37,4 +37,5 @@ else:
WoeUSB.utils.update_policy_to_allow_for_running_gui_as_root(__file__)
print("Policy was updated, please run this program again")
+ raise
That is, add the raise statement to the bottom of the file, and the original error is restored. In my case, $DISPLAY was not properly set:
$ woeusbgui
Policy was updated, please run this program again
Unable to access the X Display, is $DISPLAY set properly?
Running as superuser fixes this for me
sudo woeusbgui
The command sudo woeusbgui from above helped me as well. So, I think it's probably something related to authentication.