Ubuntu open applications, the favorites shows two application icon

Input terminal xprop | after grep WM_CLASS, the mouse will become "cross-shaped", click on the application window, the output will be similar to the following passage: WM_CLASS (STRING) = "gnome -terminal-server", "Gnome-terminal"
copy the second a string of desktop editing application file (in / usr / share / applications under), the last line add StartupWMClass = Gnome-terminal (Gnome- terminal string you just copied)

Restart the application to get away

Guess you like

Origin www.cnblogs.com/qiananshiguang/p/11423567.html