Bug 452414

Summary: Terminal pane: .zprofile file not sourced
Product: [Applications] konsole Reporter: Fisher <fisher521.fs>
Component: kpartAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: christoph
Priority: NOR    
Version: 21.12.2   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

Description Fisher 2022-04-08 19:19:34 UTC
SUMMARY
When I start the terminal, `~/.zprofile` is not properly sourced. This results in my PATH not being set properly.

I believe this results from the terminal starting `/bin/zsh` manually instead using a login shell. 

On macOS, terminals must always [use the login shell for profile files to be read](https://unix.stackexchange.com/a/119675/498032).

STEPS TO REPRODUCE
1. Open Kate on macOS
2. Open Terminal Pane

OBSERVED RESULT
Shell profile file not properly sourced

EXPECTED RESULT
Shell profile file sourced

SOFTWARE/OS VERSIONS
macOS: 11.6
Comment 1 Christoph Cullmann 2022-04-09 15:26:48 UTC
I would assume this is rather an issue of Konsole itself.
Comment 2 Fisher 2022-04-10 16:12:23 UTC
(In reply to Christoph Cullmann from comment #1)
> I would assume this is rather an issue of Konsole itself.

Ah, that makes sense. I didn't realize Konsole was also available for macOS.
Comment 3 Fisher 2022-04-10 16:15:49 UTC
Looks like iTerm2 solves this by calling `login -f`.

https://github.com/gnachman/iTerm2/blob/dc016bf6c103719acba3cc9c55d4a404fb0b24fb/sources/ITAddressBookMgr.m#L646