Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy was updated, please run this program again #100

Open
2 tasks
EchoEllet opened this issue Jun 2, 2023 · 5 comments
Open
2 tasks

Policy was updated, please run this program again #100

EchoEllet opened this issue Jun 2, 2023 · 5 comments

Comments

@EchoEllet
Copy link

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

@Vysp3r
Copy link

Vysp3r commented Jun 9, 2023

Same problem for me

@demirdegerli
Copy link

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

@jquast
Copy link

jquast commented Aug 10, 2023

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?

@xavierigor
Copy link

Running as superuser fixes this for me

sudo woeusbgui

@Stopfield
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants