Unable to configure custom application paste keystroke for Terminator

Bug #1546713 reported by Nicholas Hinds
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Diodon
Confirmed
Undecided
Unassigned

Bug Description

I use Terminator as my terminal program, which is a python application. Its executable is /usr/bin/terminator, which links to /usr/share/terminator/terminator. However, I can't use either of these in Diodon's app-paste-keybindings preference to make it send Ctrl+Shift+V to paste.

I tried ['/usr/bin/gnome-terminal|<Shift><Ctrl>V', '/usr/lib/gnome-terminal/gnome-terminal-server|<Shift><Ctrl>V', '/usr/bin/terminator|<Shift><Ctrl>V', '/usr/share/terminator/terminator|<Shift><Ctrl>V'] but this did not work.

It seems like when Terminator is running, the X Window's executable comes back as /usr/bin/python2.7, since its executable is actually a script with python as its interpreter. Diodon looks at /proc/<pid>/exe, sees /usr/bin/python2.7, and uses that as the application path for the preference.

I can add /usr/bin/python2.7 to my app-paste-keybindings, and that works perfectly for Terminator, however it has the unintended side effect of sending Ctrl+Shift+V to any other python applications when I try to paste into them.

I would like to be able to specify individual python applications in the app-paste-keybindings preference.

Perhaps allowing a string like '/usr/bin/python2.7 /usr/bin/terminator|<Shift><Ctrl>V' to mean "The /usr/bin/python2.7 executable whose first argument is /usr/bin/terminator" would solve this?

Revision history for this message
Oliver Sauder (sao) wrote :

Thanks for the bug report.

This is though really tricky to fix - especially as the code will need to be generic for all cases as any executable could have a path as an argument. I will have to look into this a bit more to see whether it is solvable in an easy manner.

A workaround for you at this point would be to enable "Use primary selection" in Preferences. This way instant paste will also work with Terminator app.

Changed in diodon:
status: New → Confirmed
Revision history for this message
Nicholas Hinds (hindsn) wrote :

Unfortunately I use the primary selection as well as the clipboard when I'm working, and I use them independently, so I can't use the workaround.

Thanks for the suggestion though.

Revision history for this message
Ricky Seltzer (rickyseltzer) wrote :

Me too. Thanks for the question and for the answer...

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.