Bug 419859

Summary: Problem creating konsole tabs with --tabs-from-file option.
Product: [Applications] konsole Reporter: Dave Nystrom <wdn>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 19.08.3   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dave Nystrom 2020-04-08 21:26:10 UTC
SUMMARY

Executing following command to create konsole with tabs:

konsole -qwindowgeometry 3720x2000+0+0 --tabs-from-file ~/Environment/KDE/kde_konsole_tabs_vpic -qwindowtitle VPIC &

Contents of kde_konsole_tabs_vpic:

% cat kde_konsole_tabs_vpic
#----------------------------------------------------------------------------------------------
# KDE Konsole tabs for VPIC development.

title: %d;; workdir: /home/wdn/repos/git/vpic;;                     profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project;;              profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/bin;;          profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/build;;        profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/src/branches;; profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/src/branches;; profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/src/branches;; profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/src/branches;; profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/src/branches;; profile: VNC_Sorrento_00
title: %d;; workdir: /home/wdn/Projects/vpic_project/src/branches;; profile: VNC_Sorrento_00

Problems:

1. Tabs created from descriptions in kde_konsole_tabs_vpic are not created with VNC_Sorrento_00 profile.
Instead, their profile appears to be empty or none.

2. Running above command creates 11 tabs, not 10 and the last tab does have VNC_Sorrento_00 profile,
perhaps because that is marked as my default profile.


STEPS TO REPRODUCE
1. Create a file to describe tabs similar to one listed above to use with --tabs-from-file option
of konsole application.
2. Run a command similar to the konsole command posted above.
3. Using konsole Settings menu, edit a tab specified in the tab description file and inspect name
of profile for that tab.

OBSERVED RESULT

1. Tabs created from descriptions in kde_konsole_tabs_vpic are not created with VNC_Sorrento_00 profile.
Instead, their profile appears to be empty or none.

2. Running above command creates 11 tabs, not 10 and the last tab does have VNC_Sorrento_00 profile,
perhaps because that is marked as my default profile.

EXPECTED RESULT

1. Only 10 tabs will be created and each will use the VNC_Sorrento_00 profile.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 30
(available in About System)
KDE Plasma Version: kf5-kded-5.64.0-1.fc30.x86_64
KDE Frameworks Version: kf5-kded-5.64.0-1.fc30.x86_64
Qt Version: qt-4.8.7-49.fc30.x86_64 or qt5-qtbase-common-5.12.5-2.fc30.noarch

ADDITIONAL INFORMATION

Not entirely sure how to query for KDE and Qt versions requested above.

Laptop originally ran Fedora 28.

Upgraded from Fedora 28 to Fedora 29 with instructions from:

https://fedoramagazine.org/upgrading-fedora-28-fedora-29

Then, upgraded from Fedora 29 to Fedora 30 with instructions from:

https://fedoramagazine.org/upgrading-fedora-29-to-fedora-30

No prior experience trying to create a konsole with tabs via --tabs-from-file option.
Comment 1 Kurt Hindenburg 2021-07-23 16:06:41 UTC
Git commit 512ce4403d0f7fa696cdfe41256afe35398c4f87 by Kurt Hindenburg, on behalf of Ahmad Samir.
Committed on 23/07/2021 at 16:06.
Pushed by hindenburg into branch 'master'.

Don't create a new temp profile when --workdir is used to launch Konsole

Instead set the Session initial working directory.
Related: bug 435537, bug 433160

M  +14   -18   src/Application.cpp

https://invent.kde.org/utilities/konsole/commit/512ce4403d0f7fa696cdfe41256afe35398c4f87