I can add the needed functionality by placing creating
~/.local/share/applications/xterm.desktop based on
/usr/share/applications/debian-xterm.desktop with the addition of a
"New" action.

--- /usr/share/applications/debian-xterm.desktop        2016-06-10 
09:42:53.606842511 +0200
+++ .local/share/applications/xterm.desktop     2016-06-10 10:19:10.252737613 
+0200
@@ -42,3 +42,9 @@
 Icon=xterm-color
 Categories=System;TerminalEmulator;Utility;
 X-Desktop-File-Install-Version=0.21
+Actions=New
+
+[Desktop Action New]
+Name=New Terminal
+Exec=xterm
+OnlyShowIn=Unity

There is one glitch: when opening the second xterm, Unity changes the
mouse pointer to indicate activity. I think XTerm does not send the
Unity (or GNOME?) specific message that it has started, thus this
activity indication is active until a timeout expires. Adding
"StartupNotify=false" to the [Desktop Action New] section does not fix
this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1590677

Title:
  xterm unity launcher icon does not allow opening additional windows

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xterm/+bug/1590677/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to