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

[gui] jadx-gui failed to start due to the limitation of powershell/pwsh #2159

Closed
1 of 3 tasks
Gokr-ble opened this issue Apr 23, 2024 · 3 comments
Closed
1 of 3 tasks
Assignees
Labels
enhancement GUI Issues in jadx-gui module
Milestone

Comments

@Gokr-ble
Copy link

Issue details

Some company may use Group Policy or Domain Policy to restrict employees from launching powershell.exe/pwsh.exe, but in the new version of jadx(1.5.0), it will call pwsh to get LocalAppData/RoamingAppData on Windows, which causes startup failure.
image

Jadx version

1.5.0

Java version

17

OS

  • Windows
  • Linux
  • macOS
@Gokr-ble Gokr-ble added bug GUI Issues in jadx-gui module labels Apr 23, 2024
@skylot
Copy link
Owner

skylot commented Apr 23, 2024

@Gokr-ble jadx uses dev.dirs:directories library to get application config directory in crossplatform way, and uses powershell only as a fallback way to find path of these folders: here

But jadx just need a config directory 🤣
I will add additional environment variable so it will be possible to set custom config directory.

@skylot skylot self-assigned this Apr 23, 2024
@skylot skylot added this to the TBD milestone Apr 23, 2024
@skylot skylot added enhancement and removed bug labels Apr 23, 2024
@skylot
Copy link
Owner

skylot commented Apr 30, 2024

Done.
Set both env variables JADX_CONFIG_DIR and JADX_CACHE_DIR to use custom directories.
To test, try latest unstable build.

@Gokr-ble
Copy link
Author

Gokr-ble commented May 1, 2024

Awesome, Thanks a lot for your effort

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement GUI Issues in jadx-gui module
Projects
None yet
Development

No branches or pull requests

2 participants