Jel*_*Cat 4 icons gnome-shell ubuntu-dock
我最近在我的系统中添加了 Terminator(终端模拟器)。当我打开 Terminator 时(无论是通过单击启动器中的图标还是按键盘快捷键),我的启动器(Ubuntu Dock)中都会出现一个新图标。
我能做什么
我的 gnome-terminal 没有这个问题。
我正在运行 Ubuntu 18.04.4 LTS。
我查看了谷歌浏览器图标的这个解决方案,但它不适用:我的$HOME/.local/share/applications不包含任何终结者的桌面文件。
这是我的内容/usr/share/applications/terminator.desktop:
[Desktop Entry]
Name=Terminator
Comment=Multiple terminals in one window
TryExec=terminator
Exec=terminator
Icon=terminator
Type=Application
Categories=GNOME;GTK;Utility;TerminalEmulator;System;
StartupNotify=true
X-Ubuntu-Gettext-Domain=terminator
X-Ayatana-Desktop-Shortcuts=NewWindow;
Keywords=terminal;shell;prompt;command;commandline;
[NewWindow Shortcut Group]
Name=Open a New Window
Exec=terminator
TargetEnvironment=Unity
Run Code Online (Sandbox Code Playgroud)
更新:我发现我可以通过按 windows 键,输入“终结者”,右键单击“终结者”,然后选择“添加到收藏夹”来避免一些此类问题。(“添加到收藏夹”从来没有当右键点击启动器本身的终结者图标的选项。)但是,当我打Ctrl+ Alt+t打开一个终端,它仍然会在启动一个新的图标。
尝试这个
启动 Terminator 并在终端中运行xprop WM_CLASS。现在将光标(可能看起来像一个十字)放在 Terminator 窗口上并单击。在桌面文件中添加一行,内容为
StartupWMClass=<second entry in WM_CLASS(STRING) without the quotes>
这可能会解决您的问题。
| 归档时间: |
|
| 查看次数: |
338 次 |
| 最近记录: |