mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #710] Question about PS1 / PROMPT_COMMAND #486
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#486
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reinerh on GitHub (Aug 13, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/710
A user asked on the Debian BTS [1] why PS1 is forced when spawning a shell, and if it can be disabled (or made configurable), as it might be customized by the user to indicate something, which would be hidden by firejail.
Can you please explain why it is currently changed?
1: https://bugs.debian.org/834256
@nuxwin commented on GitHub (Aug 13, 2016):
@reinerh
See also https://github.com/netblue30/firejail/issues/704
@netblue30 Directly related ;)
@nuxwin commented on GitHub (Aug 14, 2016):
@netblue30
I think that you should not set the PROMPT_COMMAND environment variable in mainline. Instead, you should simply call interpreters with the
-loption as unique argument, excepted if the user called firejail with argument that are not firejail options.@netblue30 commented on GitHub (Aug 14, 2016):
I just needed some sort of indication I am in a sandbox, so I made the prompt green. I'll add a config option in /etc/firejail/firejail.config. I already have something similar to disable the title of x11 window when running xephyr.
@nuxwin commented on GitHub (Aug 14, 2016):
@netblue30
Well, hardcoding the prompt with color in mainline is really a bad thing for many reasons:
tputandterminfoare always available. That is not always the case. Think of--chrootoption usage with a fs that doesn't provide them.My opinion is that FireJail should stick to standards and stay out of any fancy. You should concentrate on the main purpose which is the isolation.
Note that my sentence here is only intented to improve the project. There is nothing offensive.
Thank you for your interest.
@netblue30 commented on GitHub (Aug 15, 2016):
The prompt was removed!