Message: previous - next
Month: October 2019

Re: [trinity-users] Konsole, auto start program upon opening?

From: "Dr. Nikolaus Klepp" <office@...>
Date: Tue, 22 Oct 2019 19:50:22 +0200
Anno domini 2019 Tue, 22 Oct 12:38:35 -0500
 Michael scripsit:
> Is this possible?
> Have several tabs open in Konsole.  Upon (re)login to TDE have program A 
> automatically run in tab A, program B automatically run in tab B, program C 
> automatically run in tab C?
> Thanks,
> Michael

Not on the easy way. But you could do some shell magic. First start konsole with enhanced dcop capabilities:
$ konsole --script

Then you can send command to konsole with dcop, e.g. execute "ls -l" (konsole-16979 will definitly be different whan you try - and watch the linebreak inside the ""):

$ dcop konsole-16979 session-1 feedSession "ls -l

So in theory you can get that running. When you search the archive, you'll find something simillar built for a non-sessionaware exitor (xs? xe? sorry ....)


Please do not email me anything that you are not comfortable also sharing with the NSA, CIA ...