duplicated terminal icons

Bug #1351139 reported by Hong Nguyen
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Docky
Invalid
Undecided
Unassigned
plank (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I followed instructions from http://wiki.go-docky.com/index.php?title=How_to_Customize_Window_Matching and added StartupWMClass=Gnome-terminal into gnome-terminal.desktop but that didn't solve the problem.
I noticed that if I run terminal from /usr/share/applications, it's displayed in the dock's icon otherwise it's displayed with another ugly icon. Beside that, the ugly icon doesn't have the option "Keep in Dock".

I'm using Linux Mint 17 Cinnamont 64-bit
Plank version 0.6.1
Docky version 3.0

Revision history for this message
Hong Nguyen (nghongbk) wrote :
Revision history for this message
Silvio Sabo (silvio-s) wrote :

I have the same problem, using Linux Mint 17.1 Rebecca.

If I open a terminal using the icon from the menu it doesn't create a duplicate but if I start it from Plank it creates a duplica terminal Icon.

I have tried to add

StartupWMClass=gnome-terminal as well as StartupWMClass=Terminal but none of them works.

I have tried to change all gnome-terminal entries in /usr/share/applications/Terminal.desktop to Terminal and vice versa.
I have tried to change the name from Terminal.desktop to gnome-terminal.desktop and I have tried copying Terminal.desktop to gnome-terminal.desktop and have both of the files in /usr/share/applications/ and tried to make the above changes in both.

I tried editing the file for the icon in /home/[my username]/.config/plank/dock1/launchers and changing it's name to both gnome-terminal.dockitem and Terminal.dockitem.

Nothing works!

Does anyone have a solution?

Revision history for this message
tstumm (tstumm) wrote :

I experience the same problem since Linux Mint 17 (Cinnamon).
I've also tried almost everything, but nothing will work.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plank (Ubuntu):
status: New → Confirmed
tstumm (tstumm)
Changed in docky:
status: New → Confirmed
Revision history for this message
firefox-user-88 (navarroj) wrote :

Commenting out the line OnlyShowIn=GNOME;Unity; in /usr/share/applications/gnome-terminal.desktop solved this issue for me.

/usr/share/applications/gnome-terminal.desktop:
[Desktop Entry]
Name=Terminal
...
#OnlyShowIn=GNOME;Unity;
...

Revision history for this message
dinosaurfiles (assodusta) wrote :

File: gnome-terminal.desktop

[Desktop Entry]
Name=Terminal
Comment=Use the command line
TryExec=gnome-terminal
Exec=gnome-terminal
Icon=utilities-terminal
Type=Application
X-GNOME-DocPath=gnome-terminal/index.html
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-terminal
X-GNOME-Bugzilla-Component=BugBuddyBugs
X-GNOME-Bugzilla-Version=3.6.2
Categories=GNOME;GTK;Utility;TerminalEmulator;
StartupNotify=true
StartupWMClass=gnome-terminal
OnlyShowIn=GNOME;Unity;
Keywords=Run;
Actions=New
X-Ubuntu-Gettext-Domain=gnome-terminal

[Desktop Action New]
Name=New Terminal
Exec=gnome-terminal
OnlyShowIn=Unity

; fixed it with this.

Revision history for this message
Matt McGraw (g33kdad) wrote :

I am having this same problem. LM 17.1 Rebecca 32-bit. When I installed Mint fresh, it was fine. But, the last update messed it up. I have tried "StartupWMClass=Gnome-terminal" to no avail. Also tried the same with "gnome-terminal" instead, no joy.

So far, no fix

Revision history for this message
David Wilian Oliveira de Sousa (david-sousarj) wrote :

I have the exact same issue for a while using Linux Mint 17.1 Cinnamon. But the solution of ~navarroj works to me.

Revision history for this message
Lorenzo Neri (straxel7) wrote :

I tried the solution of navarroj:
/***
Commenting out the line OnlyShowIn=GNOME;Unity; in /usr/share/applications/gnome-terminal.desktop solved this issue for me.

/usr/share/applications/gnome-terminal.desktop:
[Desktop Entry]
Name=Terminal
...
#OnlyShowIn=GNOME;Unity;
...
***/

Revision history for this message
bwat47 (bwat47) wrote :

Editing the file in /usr/share/applications could potentially get overridden after an update, I'd recommend copying the .desktop file to /home/usernamehere/.local/share/applications, editing the file there, and dragging that file to your plank dock.

Revision history for this message
Rokhsane (t4rik) wrote :

Add "X-Cinnamon;" to "OnlyShowIn=GNOME;Unity;"

/usr/share/applications/gnome-terminal.desktop:

[Desktop Entry]
Name=Terminal
.
.
.

OnlyShowIn=GNOME;Unity;X-Cinnamon;

.
.

Revision history for this message
Zlatko Zlatev (zlatko-zlatev) wrote :

@Rokhsane, nice find! Works perfectly.

Changed in docky:
status: Confirmed → Invalid
Changed in plank (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Avery Bunker (tuxery) wrote :

Still an issue with Linux Mint 18. Rokhsane (t4rik) fix works instantly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.