![]() Registered Member ![]()
|
Hi all,
I'm trying to figure out how I can change the default telnet association? As it is right now, telnet:// links from the browser are opened in a new console window. I'm trying to figure out where I need to add the new tab parameter so that it opens a new tab in console instead of a new window. Any suggestions where to look ? thank you, |
![]() Manager ![]()
|
just a guess, try
systemsettings -> default applications -> terminal emulator -> use a diff .... -> konsole --new-tab |
![]() Registered Member ![]()
|
Good news is that, that is the setting responsible and firefox, chrome etc obey that setting. Bad news is that as soon as I append --new-tab to konsole links won't open. If I remove it, a new window pops up fine ![]() The links are in the format telnet://IP:PORT?=TITLE As a secondary objective I'd like to figure out how to make konsole obey setting the title that way as new tab or new window the title doesn't work all the same. any thoughts? thank you again, |
![]() Manager ![]()
|
see http://ubuntuforums.org/showthread.php?t=1826999
I'd guess in FF -> edit -> preferences -> applications -> telnet -> use othe -> name of script |
![]() Administrator ![]()
|
Have you tried altering the execution of "Konsole" itself in the application menu to include the --new-tab option by default?
This should follow through and be used if "Konsole" is selected as the default terminal application. Alternately, you may wish to try "konsole --new-tab --noclose" as your custom terminal application command.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Unfortunately I haven't been able to make it work. Setting "konsole --new-tab --noclose" as my custom telnet application doesn't work with telnet links. As soon as I remove any parameters from the end links work again but they open in a new window. I also tried putting "konsole --new-tab" in a one-line bash script, made it executable and set that as my custom telnet app. That doesn't work either, clicking on the link does open a new konsole tab instead of a window, however no telnet command is executed. Also no matter what the ?=Title part of the telnet link is not passed on to konsole. I guess I would have to learn how to do a bash script that would parse the telnet link and feed it to konsole with the appropriate parameters. I was just hoping for some help in the meantime so that I can focus on work cause obviously learning to script from scratch will take me a while ![]() I'm open to any more suggestions? thank you, |
![]() Administrator ![]()
|
For a shell script, you will need to pass on all additional arguments to Konsole. For bash I think this is doable with $@ but I cannot recall exactly.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]