[GH-ISSUE #2050] Android Studio Invalid Config Path #1384

Closed
opened 2026-05-05 08:01:19 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @ghost on GitHub (Jul 21, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2050

Invalid Config Path: Config path '/home/user/.AndroidStudio3.1/config' is invalid.
If you have modified the 'idea.config.path' property please make sure it is correct,
otherwise please re-install the IDE.

Has anyone had this issue in Android Studio with firejail? It's googlable for regular Android Studio installs, but my regular Android Studio starts up fine, and the solutions that mention altering the idea.properties do not work in ending this error.

Could it have to do with the command to launch android studio being a path to studio.sh instead of the more common /usr/bin file? Or, I don't know what.. I'm new to all this.

Thanks.

Originally created by @ghost on GitHub (Jul 21, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2050 Invalid Config Path: Config path '/home/user/.AndroidStudio3.1/config' is invalid. If you have modified the 'idea.config.path' property please make sure it is correct, otherwise please re-install the IDE. Has anyone had this issue in Android Studio with firejail? It's googlable for regular Android Studio installs, but my regular Android Studio starts up fine, and the solutions that mention altering the idea.properties do not work in ending this error. Could it have to do with the command to launch android studio being a path to studio.sh instead of the more common /usr/bin file? Or, I don't know what.. I'm new to all this. Thanks.
gitea-mirror 2026-05-05 08:01:19 -06:00
Author
Owner

@Fred-Barclay commented on GitHub (Jul 22, 2018):

@laserswift what version of firejail are you running? (You can check with firejail --version).

Also, can you see if it works with firejail --noprofile /path/to/AndriodStudio?

Thanks!
Fred

<!-- gh-comment-id:406835712 --> @Fred-Barclay commented on GitHub (Jul 22, 2018): @laserswift what version of firejail are you running? (You can check with `firejail --version`). Also, can you see if it works with `firejail --noprofile /path/to/AndriodStudio`? Thanks! Fred
Author
Owner

@ghost commented on GitHub (Jul 22, 2018):

I'm on firejail version 0.9.54.

Wow, am I blind? It mentions to try --noprofile in the damn output. Thanks.

I'm going to close this and just mess around until I get a more restrictive profile than --noprofile, until it works. Thanks again.

Edit: I'm going to leave this open since it's not working with the default profile.

<!-- gh-comment-id:406837720 --> @ghost commented on GitHub (Jul 22, 2018): I'm on firejail version 0.9.54. Wow, am I blind? It mentions to try --noprofile in the damn output. Thanks. I'm going to close this and just mess around until I get a more restrictive profile than --noprofile, until it works. Thanks again. Edit: I'm going to leave this open since it's not working with the default profile.
Author
Owner

@Fred-Barclay commented on GitHub (Jul 22, 2018):

Just a thought -- can you post how you're calling android studio, and the full terminal output when running it in firejail?

<!-- gh-comment-id:406838630 --> @Fred-Barclay commented on GitHub (Jul 22, 2018): Just a thought -- can you post how you're calling android studio, and the full terminal output when running it in firejail?
Author
Owner

@ghost commented on GitHub (Jul 22, 2018):

Yea, I really am dumb. I have to explicitly point to the android.studio.profile like so:

"$ firejail --profile=/etc/firejail/android-studio.profile /home/user/Android/android-studio/bin/studio.sh"

Otherwise it uses the default.profile which probably doesn't give access to the .AndroidStudio(versionnumber) folder.

I guess I just thought it would automatically use the android.studio profile.

However, um, it says that line 35 here is invalid, so I just deleted that line for now.

Thanks.

<!-- gh-comment-id:406884702 --> @ghost commented on GitHub (Jul 22, 2018): Yea, I really am dumb. I have to explicitly point to the android.studio.profile like so: "$ firejail --profile=/etc/firejail/android-studio.profile /home/user/Android/android-studio/bin/studio.sh" Otherwise it uses the default.profile which probably doesn't give access to the .AndroidStudio(versionnumber) folder. I guess I just thought it would automatically use the android.studio profile. However, um, it says that line 35 [here](https://github.com/netblue30/firejail/blob/master/etc/android-studio.profile) is invalid, so I just deleted that line for now. Thanks.
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 22, 2018):

@laserswift That's because you're using firejail 0.9.54. private-cache was added in the current git version, so it's not in the a stable release yet.

<!-- gh-comment-id:406888674 --> @chiraag-nataraj commented on GitHub (Jul 22, 2018): @laserswift That's because you're using firejail 0.9.54. `private-cache` was added in the current git version, so it's not in the a stable release yet.
Author
Owner

@Fred-Barclay commented on GitHub (Jul 22, 2018):

@laserswift I've added in a profile redirect so calling firejail /home/user/Android/android-studio/bin/studio.sh should start it with the correct android studio profile, instead of the default, generic profile. Can you copy a83fb9bdf0 to /etc/firejail/studio.sh.profile and let me know if the above command works?

<!-- gh-comment-id:406900929 --> @Fred-Barclay commented on GitHub (Jul 22, 2018): @laserswift I've added in a profile redirect so calling `firejail /home/user/Android/android-studio/bin/studio.sh` should start it with the correct android studio profile, instead of the default, generic profile. Can you copy a83fb9bdf062e705525fa63b9bbd8b43999b4831 to /etc/firejail/studio.sh.profile and let me know if the above command works?
Author
Owner

@ghost commented on GitHub (Jul 23, 2018):

Yep, it works. Thank you.

<!-- gh-comment-id:407138033 --> @ghost commented on GitHub (Jul 23, 2018): Yep, it works. Thank you.
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#1384
No description provided.