ThePorgs / Exegol

Fully featured and community-driven hacking environment
https://exegol.readthedocs.io/
GNU General Public License v3.0
1.95k stars 191 forks source link

X11 (Xquartz) black background with unreadable text #229

Closed LudovicARHIMAN closed 3 months ago

LudovicARHIMAN commented 3 months ago

Describe the bug

I found recently a bug when you start an app through X11 (XQuartz) on Mac that there is this result

image

and I found a solution, by adding pasting this into exegol shell, and/or decreasing color on 256 colors on Xquartz settings

export _JAVA_OPTIONS='-Dsun.java2d.xrender=false'
image

Steps To Reproduce

No response

Exegol Wrapper Version

v4.3.1

Host OS

MacOS

Configuration of the concerned container

[*] Exegol is currently in version v4.3.1
[*] Exegol Discord serv.: https://discord.gg/cXThyp7D6P
[*] Exegol documentation: https://exegol.rtfd.io/
[+] We thank Capgemini for supporting the project (helping with dev) 🙏
[+] We thank HackTheBox for sponsoring the multi-arch support 💚

Execution logs in debug mode

┌──────────────────────────────────────────────────────────────────┐
│ User config file: /Users/ludovicarhiman/.exegol/config.yml       │
│ Private workspace: /Users/ludovicarhiman/.exegol/workspaces      │
│ Exegol resources: /Users/ludovicarhiman/.exegol/exegol-resources │
│ My resources: /Users/ludovicarhiman/.exegol/my-resources         │
│ Auto-check updates: On ✔                                         │
│ Auto-remove images: On ✔                                         │
│ Auto-update fs: Off 🪓                                           │
│ Default start shell: zsh                                         │
│ Shell logging method: asciinema                                  │
│ Shell logging compression: On ✔                                  │
│ Desktop enabled by default: Off 🪓                               │
│ Desktop default protocol: http                                   │
│ Desktop default host: localhost                                  │
└──────────────────────────────────────────────────────────────────┘

⭐ Container summary
┌──────────────────┬───────────────────────────────────────────────────────────┐
│             Name │ main                                                      │
│            Image │ full - v.3.1.4 (Up to date) (arm64)                       │
├──────────────────┼───────────────────────────────────────────────────────────┤
│      Credentials │ root : <hidden>                                           │
│          Desktop │ Off 🪓                                                    │
│    Creation date │ 27/07/2024 20:42                                          │
│              X11 │ On ✔                                                      │
│          Network │ bridge                                                    │
│         Timezone │ On ✔                                                      │
│ Exegol resources │ On ✔ (/opt/resources)                                     │
│     My resources │ On ✔ (/opt/my-resources)                                  │
│    Shell logging │ Off 🪓                                                    │
│       Privileged │ Off ✔                                                     │
│        Workspace │ Dedicated (/workspace)                                    │
│             Envs │ DISPLAY=host.docker.internal:0                            │
│                  │ _JAVA_AWT_WM_NONREPARENTING=1                             │
│                  │ QT_X11_NO_MITSHM=1                                        │
│                  │ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/… │
│          Volumes │ (RO) /Users/ludovicarhiman/Library/Application            │
│                  │ Support/pipx/venvs/exegol/lib/python3.12/site-packages/e… │
│                  │ ➡ /.exegol/spawn.sh                                       │
│                  │ (RO) /etc/localtime ➡ /etc/localtime                      │
│                  │ (RW) /Users/ludovicarhiman/.exegol/my-resources ➡         │
│                  │ /opt/my-resources                                         │
│                  │ (RW) /Users/ludovicarhiman/.exegol/exegol-resources ➡     │
│                  │ /opt/resources                                            │
│                  │ (RW) /Users/ludovicarhiman/.exegol/workspaces/main ➡      │
│                  │ /workspace                                                │
└──────────────────┴───────────────────────────────────────────────────────────┘

Exception

No response

Anything else?

No response

Dramelac commented 3 months ago

Thanks for the suggestion, i added the env var to the exegol wrapper ! The fix is available in the current dev branch or with the next release of exegol wrapper 4.3.5