[GH-ISSUE #5585] Invalid --profile-path command line option #3036

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

Originally created by @nya1 on GitHub (Jan 13, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5585

Description

Any path provided to the CLI option --profile-path is returning an error.

Steps to Reproduce

mkdir ~/.custom
LC_ALL=C firejail --profile-path="~/.custom" firefox

Expected behavior

Load the provided profile path without returning an error (like mentioned in the usage]

Actual behavior

An error is returned

Error: invalid --profile-path=~/.custom command line option

Behavior without a profile

The same error is returned

Additional context

It seems that the CLI option is not available as any path provided returns an error

Environment

  • Debian 11
  • Firejail version 0.9.70

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

Output of LC_ALL=C firejail --profile-path="~/.custom" firefox

Error: invalid --profile-path=~/.custom command line option

Output of LC_ALL=C firejail --debug --profile-path="~/.custom" firefox

Error: invalid --profile-path=~/.custom command line option

Originally created by @nya1 on GitHub (Jan 13, 2023). Original GitHub issue: https://github.com/netblue30/firejail/issues/5585 <!-- 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 Any path provided to the CLI option `--profile-path` is returning an error. ### Steps to Reproduce ```bash mkdir ~/.custom LC_ALL=C firejail --profile-path="~/.custom" firefox ``` ### Expected behavior Load the provided profile path without returning an error ([like mentioned in the usage](https://github.com/netblue30/firejail/blob/0.9.70/src/firejail/usage.c#L208)] ### Actual behavior An error is returned ``` Error: invalid --profile-path=~/.custom command line option ``` ### Behavior without a profile The same error is returned ### Additional context It seems that the CLI option is not available as any path provided returns an error ### Environment - Debian 11 - Firejail version 0.9.70 ### 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). - [x] The program has a profile. (If not, request one in `https://github.com/netblue30/firejail/issues/1139`) - [x] 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). - [x] I'm aware of `browser-allow-drm yes`/`browser-disable-u2f no` in `firejail.config` to allow DRM/U2F in browsers. - [x] I used `--profile=PROFILENAME` to set the right profile. (Only relevant for AppImages) ### Log <details> <summary>Output of <code>LC_ALL=C firejail --profile-path="~/.custom" firefox</code></summary> <p> ``` Error: invalid --profile-path=~/.custom command line option ``` </p> </details> <details> <summary>Output of <code>LC_ALL=C firejail --debug --profile-path="~/.custom" firefox</code></summary> <p> <!-- If the output is too long to embed it into the comment, create a secret gist at https://gist.github.com/ and link it here. --> ``` Error: invalid --profile-path=~/.custom command line option ``` </p> </details>
gitea-mirror 2026-05-05 09:40:56 -06:00
Author
Owner

@rusty-snake commented on GitHub (Jan 13, 2023):

It seems that the CLI option is not available as any path provided returns an error

Correct. From firejail 0.9.52 RELNOTES:

ee89a263e2/RELNOTES (L458)


Also the error is greate

$ firejail --qwertzuiop true                              # Does not exist
Error: invalid --qwertzuiop command line option
$ firejail --blacklist true                               # Requires arguments
Error: invalid --blacklist command line option
<!-- gh-comment-id:1382422080 --> @rusty-snake commented on GitHub (Jan 13, 2023): > It seems that the CLI option is not available as any path provided returns an error Correct. From firejail 0.9.52 RELNOTES: https://github.com/netblue30/firejail/blob/ee89a263e28902f723a1ac322221f85d9eb2ad24/RELNOTES#L458 --- Also the error is greate ```console $ firejail --qwertzuiop true # Does not exist Error: invalid --qwertzuiop command line option $ firejail --blacklist true # Requires arguments Error: invalid --blacklist command line option ```
Author
Owner

@nya1 commented on GitHub (Jan 13, 2023):

@rusty-snake thanks for the quick reply, is there an alternative CLI option that can be used to accomplish the same thing?

<!-- gh-comment-id:1382428372 --> @nya1 commented on GitHub (Jan 13, 2023): @rusty-snake thanks for the quick reply, is there an alternative CLI option that can be used to accomplish the same thing?
Author
Owner

@rusty-snake commented on GitHub (Jan 13, 2023):

The closest you have is --profile which specifies the profile by name or by path. Depending your use case, you can use it directly or through and wrapper.

<!-- gh-comment-id:1382437733 --> @rusty-snake commented on GitHub (Jan 13, 2023): The closest you have is `--profile` which specifies the profile by name or by path. Depending your use case, you can use it directly or through and wrapper.
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#3036
No description provided.