bleakgrey / tootle

GTK-based Mastodon client for Linux
GNU General Public License v3.0
401 stars 61 forks source link

Build without installing in /usr #114

Closed stevenroose closed 4 years ago

stevenroose commented 5 years ago

These are the "install instructions":

$ meson build --prefix=/usr
$ cd build
$ sudo ninja install
$ com.github.bleakgrey.tootle

I tried the following thing to just build Tootle without installing it in /usr:

$ mkdir install
$ meson build --prefix=/home/steven/code/tootle/install
$ cd build
$ ninja install
$ ./com.github.bleakgrey.tootle
[INFO 21:02:22.973187] Application.vala:155: Tootle version: 0.2.0
[INFO 21:02:22.973210] Application.vala:157: Kernel version: 4.19.4-arch1-1-ARCH
[ERROR 21:02:22.975586] [GLib-GIO] Settings schema 'com.github.bleakgrey.tootle' is not installed
[1]    5433 trace trap (core dumped)  ./com.github.bleakgrey.tootle
bitkeks commented 5 years ago

It works with some additional variables: DESTDIR and GSETTINGS_SCHEMA_DIR (source).

meson build
ninja -C build
cd build
DESTDIR="install" ninja install
glib-compile-schemas install/usr/local/share/glib-2.0/schemas/
GSETTINGS_SCHEMA_DIR=install/usr/local/share/glib-2.0/schemas/ install/usr/local/bin/com.github.bleakgrey.tootle

Yet, the interface has encoding errors and does not show instance emojis.