This forum has been archived. All content is frozen. Please use KDE Discuss instead.

telnet association

Tags: None
(comma "," separated)
User avatar
latebeat
Registered Member
Posts
70
Karma
0

telnet association

Sat Mar 02, 2013 4:10 am
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,
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: telnet association

Sat Mar 02, 2013 2:43 pm
just a guess, try

systemsettings -> default applications -> terminal emulator -> use a diff .... -> konsole --new-tab


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
latebeat
Registered Member
Posts
70
Karma
0

Re: telnet association

Sat Mar 02, 2013 8:50 pm
google01103 wrote:just a guess, try

systemsettings -> default applications -> terminal emulator -> use a diff .... -> konsole --new-tab


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,
User avatar
google01103
Manager
Posts
6668
Karma
25

Re: telnet association

Sat Mar 02, 2013 9:13 pm
see http://ubuntuforums.org/showthread.php?t=1826999

I'd guess in FF -> edit -> preferences -> applications -> telnet -> use othe -> name of script


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: telnet association

Mon Mar 04, 2013 7:21 am
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]
User avatar
latebeat
Registered Member
Posts
70
Karma
0

Re: telnet association

Mon Mar 04, 2013 10:51 am
bcooksley wrote: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.


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 8)

I'm open to any more suggestions?


thank you,
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: telnet association

Tue Mar 05, 2013 8:14 am
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]


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]