Bug 452414 - Terminal pane: .zprofile file not sourced
Summary: Terminal pane: .zprofile file not sourced
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: kpart (show other bugs)
Version: 21.12.2
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-08 19:19 UTC by Fisher
Modified: 2024-03-23 03:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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