WoeUSB-ng icon indicating copy to clipboard operation
WoeUSB-ng copied to clipboard

Policy was updated, please run this program again

Open EchoEllet opened this issue 2 years ago • 5 comments

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

  1. Make sure you are on Fedora 38
  2. 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)

image

EchoEllet avatar Jun 02 '23 17:06 EchoEllet

Same problem for me

Vysp3r avatar Jun 09 '23 18:06 Vysp3r

Same problem but I found a workaround: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY woeusbgui

demirdegerli avatar Jun 16 '23 21:06 demirdegerli

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?

jquast avatar Aug 10 '23 08:08 jquast

Running as superuser fixes this for me

sudo woeusbgui

xavierigor avatar Aug 12 '23 13:08 xavierigor

The command sudo woeusbgui from above helped me as well. So, I think it's probably something related to authentication.

Stopfield avatar Aug 29 '23 23:08 Stopfield