Unix specific topics

Linux keyboard input is duplicated

This is known problem, related to some Input Methods (IM) in Linux.To see what is your active IM, open Terminal and enter:

  1. echo $GTK_IM_MODULE

Known IMs with problems: scim, xim.To fix: change IM from e.g."XIM" to "none" in the Language Support settings, then chars should not duplicate.

How to use middle-click paste on Linux

  • Set option "mouse_mid_click_paste" to true (in user.json).
  • Consider to install plugin "Auto-Copy to Clipboard", which emulates Linux editors behaviour: copying to clipboard by simple text selection (no need to use hotkey Ctrl+C).
    • This plugin has options to copy selection to a) usual clipboard, b) GTK primary selection (CudaText GTK builds only)

Linux installation

On Linux you can install program, not using installers, in such way:

  • copy file "cudatext" to folder /usr/bin
  • copy dirs [data, readme, settings_default] to "~/.config/cudatext"
  • dir "~/.config/cudatext/settings" will appear automatically on run

If program runs and cannot find "data/lexlib" near executable, it opens dirs from "~/.config/cudatext". This allows to install binary to PATH, and data dirs to homedir.

Linux Qt build

For CudaText Qt5 version, library libQt5Pas is required.

  • For Ubuntu:
  1. $ sudo apt install libqt5pas-dev
  • For Fedora:
  1. $ sudo yum install qt5pas

App cannot run on FreeBSD

If you run app in Terminal, you'll see an error about missing .so file. Reason of this error: FreeBSD version was compiled on Linux with different .so files. To fix error, run command in Terminal:

  1. $ sudo ln -s /usr/local/lib/libiconv.so.2 /usr/local/lib/libiconv.so.3