Skip to content

Instantly share code, notes, and snippets.

@ytoshima
Created July 8, 2024 04:58
Show Gist options
  • Save ytoshima/08f1ea1394c6134967d4a76210dc1be8 to your computer and use it in GitHub Desktop.
Save ytoshima/08f1ea1394c6134967d4a76210dc1be8 to your computer and use it in GitHub Desktop.
Workaround for baobab error CRITICAL **: Unable to parse option: Cannot open display

If I run baobab after sudo su -, I see following message on the terminal and baobab does not run.

** (baobab:4596): CRITICAL **: Unable to parse option: Cannot open display:

DISPLAY is set to something like ":1" or "localhost:1". I also tried --display= option, but it didn't help.

But If I run xhost + in gnome in the terminal as a user before doing su, the error is not shown and baobab worked without proboem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment