[GH-ISSUE #4197] terminal window title is not restored after firejail exits #2577

Open
opened 2026-05-05 09:14:51 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @free-tinker on GitHub (Apr 16, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4197

Write clear, concise and in textual form.

Bug and expected behavior

  • Describe the bug.
    my gnome terminal title freeze after using firejail.
    example: firejail icecat.
    then the terminal title become "firejail icecat" even after firejail stopped.
    The contributor of my linux distro said that :

I think this is an upstream bug, firejail doesn't seem to clear the title when it exits. You can try running this command to set the title:

printf "\033]0;title\007"

and this command to reset it to default

printf "\033]0;\a"

Firejail doesn't use an equivalent of the second command, so the title is not restored to default. Please open an issue upstream @free-tinker.

  • What did you expect to happen?
    The terminal title back to "Terminal".

No profile and disabling firejail

  • What changed calling firejail --noprofile /path/to/program in a terminal?
  • What changed calling the program by path (e.g. /usr/bin/vlc)?

Reproduce
Steps to reproduce the behavior:

  1. Run in bash firejail PROGRAM
  2. See error ERROR
  3. Click on '....'
  4. Scroll down to '....'

Environment

  • Linux distribution and version (ie output of lsb_release -a, screenfetch or cat /etc/os-release)
    LSB Version: 1.0
    Distributor ID: VoidLinux
    Description: Void Linux
    Release: rolling
    Codename: void
  • Firejail version (output of firejail --version) exclusive or used git commit (git rev-parse HEAD)
    firejail-0.9.64.4_1

Additional context
Other context about the problem like related errors to understand the problem.

Checklist

  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • I have performed a short search for similar issues (to avoid opening a duplicate).
  • If it is a AppImage, --profile=PROFILENAME is used to set the right profile.
  • Used LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM to get english error-messages.
  • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • This is not a question. Questions should be asked in https://github.com/netblue30/firejail/discussions.
debug output
OUTPUT OF `firejail --debug PROGRAM`
Originally created by @free-tinker on GitHub (Apr 16, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4197 Write clear, concise and in textual form. **Bug and expected behavior** - Describe the bug. my gnome terminal title freeze after using firejail. example: firejail icecat. then the terminal title become "firejail icecat" even after firejail stopped. The contributor of my linux distro said that : > I think this is an upstream bug, firejail doesn't seem to clear the title when it exits. You can try running this command to set the title: > > ``` > printf "\033]0;title\007" > ``` > > and this command to reset it to default > > ``` > printf "\033]0;\a" > ``` > > Firejail doesn't use an equivalent of the second command, so the title is not restored to default. Please open an issue upstream @free-tinker. - What did you expect to happen? The terminal title back to "Terminal". **No profile and disabling firejail** - What changed calling `firejail --noprofile /path/to/program` in a terminal? - What changed calling the program by path (e.g. `/usr/bin/vlc`)? **Reproduce** Steps to reproduce the behavior: 1. Run in bash `firejail PROGRAM` 2. See error `ERROR` 3. Click on '....' 4. Scroll down to '....' **Environment** - Linux distribution and version (ie output of `lsb_release -a`, `screenfetch` or `cat /etc/os-release`) LSB Version: 1.0 Distributor ID: VoidLinux Description: Void Linux Release: rolling Codename: void - Firejail version (output of `firejail --version`) exclusive or used git commit (`git rev-parse HEAD`) firejail-0.9.64.4_1 **Additional context** Other context about the problem like related errors to understand the problem. **Checklist** - [ ] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [ ] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [ ] I have performed a short search for similar issues (to avoid opening a duplicate). - [ ] If it is a AppImage, `--profile=PROFILENAME` is used to set the right profile. - [ ] Used `LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PROGRAM` to get english error-messages. - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] This is not a question. Questions should be asked in https://github.com/netblue30/firejail/discussions. <details><summary> debug output </summary> ``` OUTPUT OF `firejail --debug PROGRAM` ``` </details>
gitea-mirror added the
bug
label 2026-05-05 09:14:51 -06:00
Author
Owner

@mjk-gh commented on GitHub (Feb 4, 2026):

Instead of restoring the title, I would suggest to simply never touch it in the first place. Changing the title before and/or after running firejail can be easily achieved with appropriate escape codes or programs like "xtitle", should someone need the title changed.

<!-- gh-comment-id:3850103956 --> @mjk-gh commented on GitHub (Feb 4, 2026): Instead of restoring the title, I would suggest to simply never touch it in the first place. Changing the title before and/or after running firejail can be easily achieved with appropriate escape codes or programs like "xtitle", should someone need the title changed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2577
No description provided.