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

konsole tabs config file

Tags: None
(comma "," separated)
akivas
Registered Member
Posts
3
Karma
0

konsole tabs config file

Tue Aug 13, 2013 6:57 am
I want to create a tabs config file that just opens new tabs at certain locations with no command executed.
I use this command konsole --tabs-from-file tabconfig.file
I created a sample file looking like this but it dosen't work. It opens new tabs with names but dosen't open them in the specified dir:
title: first;; command: ;; workdir: /homes/akivas/temp
title: second;; command: ;; workdir: /homes/akivas/temp
title: third;; command: ;; workdir: /homes/akivas/temp/

I get this error:
Konsole::Session::run: Session::run() - program to run not set.
Konsole::Session::run: Session::run() - program to run not set.
Konsole::Session::run: Session::run() - program to run not set.
I understand it is getting stuck at the command part so I tried adding a simple command:
title: first;; command: /usr/bin/cd /homes/akivas/temp;; workdir: /homes/akivas/temp
title: second;; command: /usr/bin/clear &;; workdir: /homes/akivas/temp
title: third;; command: /usr/bin/clear &;; workdir: /homes/akivas/temp/

I'm not sure what happens after using this config file. It seems to open the new tabs and then just close them back again. I get no error line but also no new tabs.

Does anyone have a solution?
Thanks
lueck
Mentor
Posts
225
Karma
2

Re: konsole tabs config file

Tue Aug 13, 2013 11:51 am
akivas wrote:title: first;; command: ;; workdir: /homes/akivas/temp
title: second;; command: ;; workdir: /homes/akivas/temp
title: third;; command: ;; workdir: /homes/akivas/temp/

Are you *really* sure the folder "/homes" exists on your partition?
Should probably be "/home" without trailing "s"

Tested you example with different path's in 4.10/4.11/master, works as expected.
akivas
Registered Member
Posts
3
Karma
0

Re: konsole tabs config file

Tue Aug 13, 2013 12:47 pm
homes is there
what exactly did you run?
lueck
Mentor
Posts
225
Karma
2

Re: konsole tabs config file

Tue Aug 13, 2013 6:12 pm
akivas wrote:homes is there
what exactly did you run?

Code: Select all
$ konsole --tabs-from-file /tmp/konsoletabs
$ cat /tmp/konsoletabs
title: first;; command: ;; workdir: /home/bb/trans
title: second;; command: ;; workdir: /home/bb
title: third;; command: ;; workdir: /tmp
$
akivas
Registered Member
Posts
3
Karma
0

Re: konsole tabs config file

Tue Aug 13, 2013 8:27 pm
That looks just like what I did. Il'l try to just copy it and se tommorow at work and report back.
Thanks
Akiva
earlati
Registered Member
Posts
1
Karma
0

Re: konsole tabs config file

Mon Oct 30, 2017 7:27 am
maybe command field should be left as last field.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]