GUI doesn't launch from cli on macos
Closed this issue · 5 comments
Bug Description
After installing through homebrew, I executed the command czkawka_gui
and got this error message:
19:07:21.295 [INFO] czkawka_core::common: App version: 8.0.0, release mode, rust 1.81.0 (2024-09-04), os Mac OS 15.2.0 [aarch64 64-bit], 10 cpu/threads, features(0): []
(czkawka_gui:19304): GLib-GIO-ERROR **: 19:07:21.396: No GSettings schemas are installed on the system
zsh: trace trap czkawka_gui
I am having a similar issue with an install via MacPorts.
czkawka_gui
09:01:17.518 [INFO] czkawka_core::common: App version: 8.0.0, release mode, rust 1.83.0 (2024-11-26), os Mac OS 15.2.0 [aarch64 64-bit], 16 cpu/threads, features(0): []
Segmentation fault: 11
Hardware: Macbook pro M3
OS: Darwin annihilation.local 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 19:02:12 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6031 arm64
Rust: rustc 1.83.0 (90b35a623 2024-11-26) (built from a source tarball)
GTK: gtk-launch --version [4.14.3] (I did link to gtk4-launch)
--
Not seeing any library issues:
objdump -r --dylibs-used czkawka_gui
czkawka_gui: file format mach-o arm64
-- Gsettings and schema do exist
drwxr-xr-x@ 9 root admin 288 Dec 25 09:08 .
drwxr-xr-x@ 8 root admin 256 Dec 25 00:46 ..
-rw-r--r--@ 1 root admin 2917 Jan 21 2024 gschema.dtd
-rw-r--r--@ 1 root admin 5101 Dec 25 08:57 gschemas.compiled
-rw-r--r--@ 1 root admin 622 Apr 18 2024 org.gtk.Demo4.gschema.xml
-rw-r--r--@ 1 root admin 941 Apr 18 2024 org.gtk.gtk4.Settings.ColorChooser.gschema.xml
-rw-r--r--@ 1 root admin 840 Apr 18 2024 org.gtk.gtk4.Settings.Debug.gschema.xml
-rw-r--r--@ 1 root admin 678 Apr 18 2024 org.gtk.gtk4.Settings.EmojiChooser.gschema.xml
-rw-r--r--@ 1 root admin 6537 Apr 18 2024 org.gtk.gtk4.Settings.FileChooser.gschema.xml
pwd
/opt/local/share/glib-2.0/schemas
This seems to be the issue:
The segmentation fault is caused by an application attempting to access restricted memory space, and the operating system stopping this attempt.
Not sure how to fix it though.
Trying to reinstall XCode CLI Tools from this post:
https://users.rust-lang.org/t/segmentation-fault-11/119485
Reinstalled xcode cli tools and running into the same error
When installing the GUI via Homebrew, I received this warning:
==> Caveats
==> czkawka
czkawka_gui requires $XDG_DATA_DIRS to contain "/opt/homebrew/share".
Running the GUI resulted in this error:
GLib-GIO-ERROR **: No GSettings schemas are installed on the system
Solution:
- Add the following to
~/.zshrc
:export XDG_DATA_DIRS="/opt/homebrew/share:$XDG_DATA_DIRS"
- Restart your terminal or run:
source ~/.zshrc
Thank you! I had noticed that too, but added it incorrectly to my zprofile. Good catch.