Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 14.04 LTS 64-bit installation and activation Sublime Text 3 can not solve the Chinese input method to solve the problem     - With screenfetch linux logo and basic hardware information display with cool Linux logo (Linux)

- java.net.NoRouteToHostException of Hadoop problem: no route to host (Server)

- Django 1.8 TEMPLATE_DIRS configuration and STATICFILES_DIRS (Server)

- Improve the Ubuntu SSH login authentication approach speed (Linux)

- Use GLOBK batch command network adjustment (Linux)

- Ubuntu 15.04 using the Eclipse 4.4, Java 8 and WTP (Linux)

- Ubuntu 14.04 kernel after the restart boot black screen to solve (Linux)

- Editor of the popular Linux Gvim (Linux)

- DRBD rapid installation and deployment (Server)

- DataGuard add temporary data files bug (Database)

- Ubuntu install Wireshark (Linux)

- JIRA 3.6.2 Upgrade from older version to the new version 6.0.8 (Linux)

- Seven kinds of DDoS attack methods and techniques Defensive (Linux)

- Tomcat itself through simple movement separation (Server)

- A custom implementation of the Android sidebar (Programming)

- The best tools and techniques to find data on a Unix system (Linux)

- CentOS install Redis (Database)

- RocketMQ Message Queuing simple deployment (Linux)

- MySQL 5.7.9 source compiler installation instructions (Database)

- Zorin OS: Linux novice most personal desktop system should be used (Linux)

 
         
  Ubuntu 14.04 LTS 64-bit installation and activation Sublime Text 3 can not solve the Chinese input method to solve the problem
     
  Add Date : 2018-11-21      
         
         
         
  Ubuntu 14.04 LTS 64-bit installation and activation Sublime Text 3 can not solve the Chinese input method to solve the problem

1. Download and install Sublime Text 3

Download Ubuntu 64 bit version, double-click to complete the installation

Note: The terminal is opened Sublime Text Method 3 is the terminal to input subl

2. Registration

Help ->

- BEGIN LICENSE -

Andrew Weber

Single User License

EA7E-855605

813A03DD 5E4AD9E6 6C0EEB94 BC99798F

942194A6 02396E98 E62C9979 4BB979FE

91424C9D A45400BF F6747D88 2FB88078

90F5CC94 1CDC92DC 8457107A F151657B

1D22E383 A997F016 42397640 33F41CFC

E1D0AE85 A0BBD039 0E9C8D55 E1B89D5D

5CDB7036 E56DE1C0 EFCC0840 650CD3A6

B98FC99C 8FAC73EE D2B95564 DF450523

- END LICENSE -

3. Chinese input problem solving

a. Save the following code to the file sublime_imfix.c (located in the directory ~)


#include


void gtk_im_context_set_client_window (GtkIMContext * context,

GdkWindow * window)

{

GtkIMContextClass * klass;

g_return_if_fail (GTK_IS_IM_CONTEXT (context));

klass = GTK_IM_CONTEXT_GET_CLASS (context);

if (klass-> set_client_window)

klass-> set_client_window (context, window);

g_object_set_data (G_OBJECT (context), "window", window);

if (! GDK_IS_WINDOW (window))

return;

int width = gdk_window_get_width (window);

int height = gdk_window_get_height (window);

if (width! = 0 && height! = 0)

gtk_im_context_focus_in (context);

}

b. The last step of the code is compiled into a shared library libsublime-imfix.so, command

gcc -shared -o libsublime-imfix.so sublime_imfix.c `pkg-config --libs --cflags gtk + -2.0` -fPIC

NOTE: If you are prompted gtk / gtkimcontext.h: No such file or directory that is not associated with the prerequisite software installation command:

sudo apt-get install build-essential libgtk2.0-dev

c. libsublime-imfix.so will be copied to the folder where the file sublime_text


sudo mv libsublime-imfix.so / opt / sublime_text /


Content modify the file / usr / bin / subl of d


sudo gedit / usr / bin / subl

will

#! / Bin / sh

exec / opt / sublime_text / sublime_text "$ @"

change into

#! / Bin / sh

LD_PRELOAD = / opt / sublime_text / libsublime-imfix.so exec / opt / sublime_text / sublime_text "$ @"

e. In order to use the right mouse button to use Chinese input file is opened also need to modify the file sublime_text.desktop content. command

sudo gedit /usr/share/applications/sublime_text.desktop

The [Desktop Entry] string

Exec = / opt / sublime_text / sublime_text% F

change into

Exec = bash -c "LD_PRELOAD = / opt / sublime_text / libsublime-imfix.so exec / opt / sublime_text / sublime_text% F"

The [Desktop Action Window] string

Exec = / opt / sublime_text / sublime_text -n

change into

Exec = bash -c "LD_PRELOAD = / opt / sublime_text / libsublime-imfix.so exec / opt / sublime_text / sublime_text -n"

The [Desktop Action Document] string

Exec = / opt / sublime_text / sublime_text --command new_file

change into

Exec = bash -c "LD_PRELOAD = / opt / sublime_text / libsublime-imfix.so exec / opt / sublime_text / sublime_text --command new_file"
     
         
         
         
  More:      
 
- CentOS yum source deployment (Linux)
- Use window.name + iframe cross-domain access to data Detailed (Programming)
- MySQL to recover the data through binlog (Database)
- CentOS 6.5 opens the Xmanager Remote Desktop login (Linux)
- You may not know the Linux command-line network monitoring tool (Linux)
- MySQL monitoring tools -orzdba (Database)
- C ++ string in the end (Programming)
- 11.2.04 Oracle RAC directory crfclust.bdb file is too large, Bug 20186278 (Database)
- tespeed - test speed of Python tools (Linux)
- Linux command line ten magic usage (Linux)
- MySQL 5.7.10 source code for the latest version of the installation process in detail (Database)
- HBase vs Oracle (Database)
- Using 30 seconds to write a detailed analysis of garbage removal system (Linux)
- Linux server alarms using Java (Server)
- Android Scroller call mechanism and the relationship of computeScroll (Programming)
- Open container cluster management system architecture and components introduced Kubernetes (Server)
- By way of a binary installation innobackupex (Database)
- Install VLC player on Ubuntu 14.10 (Linux)
- Linux screen command (Linux)
- How to allow users to access only a specific database (MSSQL) (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.