export apps/bins using sudo
- 主要語言
- Go
- 星號
- 13k
- 分支
- 541
- 平均合併
- 20 小時 47 分鐘
- 30 天內合併 PR
- 4
描述
I have 2 questions related to distrobox-export using the "--sudo" flag:
1. Is it possible to specify --sudo as part of distrobox-assemble's "exported_bins" and "exported_apps"? I'm not sure if this is already possible or if it's a feature request. The following process is functional, but it would be nice to automate the process using distrobox-assemble:
- `distrobox-enter --root `
- Set the password when prompted
- Run a sudo command (in my testing, this is required; otherwise, distrobox-export hangs on `sudo -S test`)
- `distrobox-export --bin --sudo`
- `distrobox-export --app --sudo`
2. When running distrobox within Crostini, how can I configure an exported app to prompt for a sudo password via GUI?
- Example: `distrobox-export --app gparted --sudo` succeeds, but nothing happens after launching the corresponding .desktop file (presumably because there is no way for the user to enter the sudo password)
- Background information: I am running distrobox (via docker) from the default "Crostini" Linux container (Debian 12) on ChromeOS. Crostini allows sudo, but if I understand correctly, it does not actually have a root password and therefore is not compatible with other authentication methods, such as those outlined [here](https://github.com/89luca89/distrobox/blob/main/docs/useful_tips.md#using-a-command-other-than-sudo-to-run-a-rootful-container); I believe each of these methods will request the host's root password, which does not exist in Crostini.
Thank you!
貢獻指南
研究方向
查看 distrobox-assemble,了解 exported_bins 和 exported_apps 是如何被處理的,並查看 distrobox-export,理解 --sudo flag 的處理方式。該 issue 涉及修改 assemble script 以傳遞 sudo flag,並且可能需要調整 Crostini 中用於 GUI 密碼提示的 export 邏輯。測試將需要一個 distrobox 環境,最好是在 ChromeOS 或類似 setup 上。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- bash, docker, shell
- 領域
- cli, developer-experience
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100