[Suggestion] init_hooks run as user
- 主要語言
- Go
- 星號
- 13k
- 分支
- 541
- 平均合併
- 20 小時 47 分鐘
- 30 天內合併 PR
- 4
描述
**Is your feature request related to a problem? Please describe.**
I'm always frustrated when I have to run `su $USER -- cmd` in init_hooks in distrobox assemble
**Describe the solution you'd like**
Obviously a conventional way to execute init_hooks as the distrobox's user in the container obviously through distrobox-init
**Describe alternatives you've considered**
As mentioned `su $USER -- cmd` in init hook but it's kinda depend on weird behavior like the `$USER` variable expanding in v1 but I remember most of the variable expansion doesn't on the v2 distrobox.ini file
貢獻指南
研究方向
查看 distrobox-init 以及 init_hooks 的執行方式。這個 issue 涉及以容器使用者身分執行 hooks。首先檢查程式碼庫中的 assemble 命令和 init hook 處理邏輯。檢查是否進行了使用者內容切換。測試可以建立一個 hook,並驗證它是否以預期使用者的身分執行。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli, developer-experience
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100