Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Invalid --profile-path command line option #5585

Closed
7 tasks done
nya1 opened this issue Jan 13, 2023 · 3 comments · Fixed by #5586
Closed
7 tasks done

Invalid --profile-path command line option #5585

nya1 opened this issue Jan 13, 2023 · 3 comments · Fixed by #5586
Labels
bug Something isn't working documentation Issues and pull requests related to the documentation

Comments

@nya1
Copy link
Contributor

nya1 commented Jan 13, 2023

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

@rusty-snake
Copy link
Collaborator

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

Correct. From firejail 0.9.52 RELNOTES:

* modif: --profile-path was deprecated


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

rusty-snake added a commit that referenced this issue Jan 13, 2023
@rusty-snake rusty-snake added the bug Something isn't working label Jan 13, 2023
@nya1
Copy link
Contributor Author

nya1 commented 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?

@rusty-snake
Copy link
Collaborator

rusty-snake commented 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.

kmk3 added a commit that referenced this issue Jan 14, 2023
@kmk3 kmk3 added the documentation Issues and pull requests related to the documentation label Jan 14, 2023
kmk3 added a commit that referenced this issue Jan 14, 2023
Added on commit 7902594 ("RELNOTES: add bugfix for --profile-path in
--help", 2023-01-14).

Relates to #5585 #5586.
@kmk3 kmk3 moved this to Done (on RELNOTES) in Release 0.9.72 Sep 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working documentation Issues and pull requests related to the documentation
Projects
Status: Done (on RELNOTES)
Development

Successfully merging a pull request may close this issue.

3 participants