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 Desktop
Packages, which is subscribed to xterm in Ubuntu.
https://bugs.launchpad.net/bugs/1590677

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

Status in xterm package in Ubuntu:
  New

Bug description:
  The launcher icon for xterm in unity on Ubuntu 14.04 LTS does not
  provide a way to open additional XTerms (e.g. the gnome-terminal
  launcher icon does). Thus it is not possible to open more than one
  XTerm window using just the unity launcher.

  $ lsb_release -rd
  Description:  Ubuntu 14.04.4 LTS
  Release:      14.04

  $ apt-cache policy xterm
  xterm:
    Installed: 297-1ubuntu1
    Candidate: 297-1ubuntu1
    Version table:
   *** 297-1ubuntu1 0
          500 http://ftp.uni-kl.de/pub/linux/ubuntu/ trusty/main amd64 Packages
          100 /var/lib/dpkg/status

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to