v1cont / yad

Yet Another Dialog
GNU General Public License v3.0
645 stars 58 forks source link

git build/install, then yad fails with No GSettings schemas are installed on the system Trace/breakpoint trap (core dumped) #227

Open sputnick-dev opened 1 year ago

sputnick-dev commented 1 year ago

LinuxMint 21, with all required dependencies

I try to build yad from git sources:

git clone  https://github.com/v1cont/yad.git yad
cd yad
autoreconf -ivf
intltoolize  --force
./configure --with-gtk=gtk3 --enable-icon-browser --enable-html
make
mkdir /home/me/.local/share/glib-compile-schemas
export XDG_DATA_DIRS=/home/me/.local/share/glib-compile-schemas:$XDG_DATA_DIRS
glib-compile-schemas data/
cd src
./yad  --question --title 'title'  --text "x" 

(yad:3060175): GLib-GIO-ERROR **: 07:17:26.885: No GSettings schemas are installed on the system
Trace/breakpoint trap (core dumped)

I have read https://github.com/v1cont/yad/issues/119

v1cont commented 1 year ago

scheme must be set system wide. or configure yad with --enable-standalone

sputnick-dev commented 1 year ago

Do you have concrete example of system wide command?

Maybe the doc should be updated on this point.

v1cont commented 1 year ago

./configure --prefix=/usr && make && sudo make install

or manually place data/yad.gscheme.xml into /usr/share/glib-2.0/schemas and run glib-compile-schemas /usr/share/glib-2.0/schemas

sputnick-dev commented 1 year ago

Any change to have doc updated? Can I make a PR?

v1cont commented 1 year ago

all of this described in a readme. manual installation of schema file is a hack and has a very rare usage