Thread
:
N900 keyboard friendly, second thread.
View Single Post
low life
2010-02-22 , 17:06
Posts: 38 | Thanked: 16 times | Joined on Dec 2009
#
28
I've bumped into a problem again..
I made ctrl+shift+i launch an SSH connection using X-term with the following line:
os.system("/usr/bin/osso-xterm 'ssh user@server'")
The shortcut works, with the right key combination launching an SSH connection. However, further ctrl+shift combinations don't work until I close the terminal with SSH in it, and after closing it all the ctrl+shift presses I've used while it's open seem to be executed (so I do ctrl+shift+b 5 times when SSH is open, nothing happens, but when I close the SSH terminal I get 5 empty browser windows). If I copy the text printing part from ctrl+shift+d function, that text is also printed when closing the SSH window, not as it's opened.
What makes this interesting, however, is that if I have another terminal window (just an idle terminal, doesn't need to have an SSH connection or anything) open before I use the SSH connection shortcut, everything seems to work as it should, the text is printed when I use the shortcut and ctrl+shift key press functions are executed as expected. The shortcuts also work if I open the SSH connection from my desktop shortcut pointing to "osso-xterm 'ssh user@server'".
Is os.system() the wrong way to do this, or is it just something I'll need to get used to? It's only a minor annoyance, since I can do ctrl+shift+x before ctrl+shift+i and it works fine, but would be great if someone knew how to do this right.
Quote & Reply
|
low life
View Public Profile
Send a private message to low life
Find all posts by low life