Skip to content

Instantly share code, notes, and snippets.

@volkbay
Last active July 6, 2023 15:06
Show Gist options
  • Save volkbay/1059112f63c191a29520cf869904e3d9 to your computer and use it in GitHub Desktop.
Save volkbay/1059112f63c191a29520cf869904e3d9 to your computer and use it in GitHub Desktop.
Fixing app crashes when dialog open in Termux (X11 apps on VNC)

👾 Error

This solution is helpful if you get GLib-GIO-ERROR** .. No GSettings schemas are installed on the system error, when you try to open a dialog window from X11 apps in Termux. This behaviour is typical when you want to "Open File" or "Save As..." (example, Inkscape).

🔎 How to solve ?

The solution is to identify XDG_DATA_DIRS.

🕊️ Solution The following command line can be pasted in ~/.bashrc file.

    export XDG_DATA_DIRS="/data/data/com.termux/files/usr/share"

Note If you encounter the same problem on a PC, you should rather add /usr/local/share to the mentioned variable.

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