elementary / elementary/code

Flatpak version has different prompt in terminal pane than in Terminal app

未关闭
#1,723 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Vala
星标
521
派生
118
平均合并
1 天 8 小时
30 天内合并 PR
14

描述

### What Happened?

In the Terminal app (and the native Code app) the prompt is taken from the system environment variable `PS1` defined in `etc/skel/.bashrc` possible modified in `~/.bashrc`. However in the FlatPak app this variable defaults to `$FLATPAK_ID \W]\$` which is less helpful.

### Steps to Reproduce

Run Flatpak Code and look at terminal pane

### Expected Behavior

The prompt shown should match that set by the user in their `.bashrc` file.

### OS Version

8.x (Circe)

### OS Architecture

amd64 (on most hardwares)

### Session Type

Secure Session (Wayland, This is the default)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell

```

### Hardware Info

_No response_

贡献指南

打开贡献指南

调研方向

首先在 Flatpak Code 的终端窗格中重现提示符差异,并将其与 Terminal 应用和原生 Code 应用进行比较。检查如何处理来自 etc/skel/.bashrc 和 ~/.bashrc 的环境;当 Flatpak 提示符与用户配置的 PS1 匹配时即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
bash
领域
cli, desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。