Open
Description
I get the "cannot open display" error on MacOS when I try to start the compiled application:
(<unknown>:21916): Gtk-WARNING **: 21:08:42.157: cannot open display:
Do I need to set up XQuartz somehow?
I am using MacOS 12.4 on ARM/M1, with MacPorts.
# System deps
sudo port install graphene gtk4
# Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
export PATH="$HOME/.cargo${PATH:+:$PATH}"
rustup install stable
# Get repo
git clone 'https://github.com/vhakulinen/gnvim'
cd gnvim
# Build and run
cargo build --release
cargo run --bin gnvim
Activity
vhakulinen commentedon Dec 18, 2022
I don't know, you could give it a try.
FWIW gtk-rs docs instructs to install gtk4 through brew, not macports.
gwerbin commentedon Dec 18, 2022
I had the same problem using Homebrew Gtk4.
hvanunu commentedon Dec 21, 2022
same issue
apple m2
ventura 13.0.1 (22A400)
homebrew gtk4
tareu commentedon Apr 11, 2024
I managed to make it build (M1 here). Had to replace install and sed in the Makefile with their GNU equivalents from Brew. Now getting this error:
vhakulinen commentedon Apr 11, 2024
Either:
In d77e7fb gnvim gained support for remembering the window size/state and got hard requirement for the gio settings schema to be present during runtime.
Here's one related SO question, but for windows: https://stackoverflow.com/questions/28953925/glib-gio-error-no-gsettings-schemas-are-installed-on-the-system
And another one related on changing the place glib looks for the schemas: https://unix.stackexchange.com/questions/641238/how-to-make-a-glib-app-look-for-schema-at-a-different-path