Havoc icon indicating copy to clipboard operation
Havoc copied to clipboard

Issue with setting up Havoc

Open spartanq2 opened this issue 1 year ago • 2 comments

image

Using x11 and awesomewm and having an issue with xdg_runtime_dir being invalid or not set in the environment

I am 100% a script kiddie so apologies for any lack of information

spartanq2 avatar Apr 11 '24 15:04 spartanq2

Also using arch, I was getting the same error using the makefile as I am using the Pacman repo

spartanq2 avatar Apr 11 '24 16:04 spartanq2

@spartanq2 This error is not related to Havoc but instead related to the variable XDG_RUNTIME_DIR not being carry on because when running a software as another user (in this case root) you're in fact starting a new minimal isolated environment that doesn't carry on some "excessive" variables (among others variables responsible for injecting libraries or setting privileges). To overcome this you will need to set the variable XDR_RUNTIME_DIR to the value that your user have:

sudo XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR havoc

ressources:

  • https://askubuntu.com/questions/456689/error-xdg-runtime-dir-not-set-in-the-environment-when-attempting-to-run-naut
  • https://www.phind.com/search?cache=r30buyl2fxso4wbty283f4sw

ramsy0dev avatar May 07 '24 12:05 ramsy0dev