[GH-ISSUE #6057] contrib/syntax: firejail-profile.lang causes Gnome Editor to recognize every plain text document as "Firejail Profile" #3171

Closed
opened 2026-05-05 09:47:43 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @mammo0 on GitHub (Oct 20, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6057

Description

The firejail installation also adds a language definition file in /usr/share/gtksourceview-5/language-specs/firejail-profile.lang (path on Arch Linux).
The mimetypes property contains the section text/plain. This causes for example the Gnome Editor to recognize every simple text file as a firejail profile file. See this issue: https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/612

If I change the property line to

<property name="mimetypes">text/x-firejail-profile</property>

everything works as expected.

Steps to Reproduce

Steps to reproduce the behavior

  1. Install firejail
  2. Open Gnome Editor
  3. type asdf and hit enter

Expected behavior

This should not change the default document type.

Actual behavior

Document type gets set to "Firejail Profile", which makes the text light up as syntax errors.

Behavior without a profile

N/A

Additional context

N/A

Environment

  • Linux distribution and version: "Arch Linux"
  • Firejail version: 0.9.72

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local).
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

N/A

Originally created by @mammo0 on GitHub (Oct 20, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/6057 <!-- See the following links for help with formatting: https://guides.github.com/features/mastering-markdown/ https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax --> ### Description The firejail installation also adds a language definition file in `/usr/share/gtksourceview-5/language-specs/firejail-profile.lang` (path on Arch Linux). The `mimetypes` property contains the section `text/plain`. This causes for example the Gnome Editor to recognize every simple text file as a firejail profile file. See this issue: https://gitlab.gnome.org/GNOME/gnome-text-editor/-/issues/612 If I change the property line to ```xml <property name="mimetypes">text/x-firejail-profile</property> ``` everything works as expected. ### Steps to Reproduce _Steps to reproduce the behavior_ 1. Install firejail 2. Open Gnome Editor 3. type `asdf` and hit enter ### Expected behavior This should not change the default document type. ### Actual behavior Document type gets set to "Firejail Profile", which makes the text light up as syntax errors. ### Behavior without a profile N/A ### Additional context N/A ### Environment - Linux distribution and version: "Arch Linux" - Firejail version: 0.9.72 ### Checklist <!-- Note: Items are checked with an "x", like so: - [x] This is a checked item. --> - [x] The issues is caused by firejail (i.e. running the program by path (e.g. `/usr/bin/vlc`) "fixes" it). - [x] I can reproduce the issue without custom modifications (e.g. globals.local). - [ ] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [ ] The profile (and redirect profile if exists) hasn't already been fixed [upstream](https://github.com/netblue30/firejail/tree/master/etc). - [x] I have performed a short search for similar issues (to avoid opening a duplicate). - [ ] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [ ] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log N/A
gitea-mirror 2026-05-05 09:47:43 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rusty-snake commented on GitHub (Oct 20, 2023):

PR welcome ;)

<!-- gh-comment-id:1772925815 --> @rusty-snake commented on GitHub (Oct 20, 2023): PR welcome ;)
Author
Owner

@mammo0 commented on GitHub (Oct 21, 2023):

@rusty-snake done :)

<!-- gh-comment-id:1773771765 --> @mammo0 commented on GitHub (Oct 21, 2023): @rusty-snake done :)
Author
Owner

@bjesus commented on GitHub (Dec 9, 2024):

If anyone is still facing this issue and is confused why — it's because Firejail didn't have a release since Jan 2023.

<!-- gh-comment-id:2527877779 --> @bjesus commented on GitHub (Dec 9, 2024): If anyone is still facing this issue and is confused why — it's because Firejail didn't have a release since Jan 2023.
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#3171
No description provided.