[GH-ISSUE #938] atom profile breaks git integration #637

Closed
opened 2026-05-05 06:19:47 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @raffomania on GitHub (Nov 25, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/938

When using the atom profile, atom doesn't hide files specified in the .gitignore file anymore. I'm not sure how this happens, atom definitely has access to the .gitignore file.

Originally created by @raffomania on GitHub (Nov 25, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/938 When using the atom profile, atom doesn't hide files specified in the `.gitignore` file anymore. I'm not sure how this happens, atom definitely has access to the .gitignore file.
gitea-mirror 2026-05-05 06:19:47 -06:00
Author
Owner

@netblue30 commented on GitHub (Nov 27, 2016):

Seems to be working fine for me, I can access .gitignore file:

$ firejail --profile=/etc/firejail/atom.profile /bin/bash
Reading profile /etc/firejail/atom.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Parent pid 31080, child pid 31081
Child process initialized
[netblue@debian firejail]$ cat .gitignore
*.o
*.so
*~
*.swp
*.rpm
*.gcda
*.gcno
Makefile
config.log
config.status
firejail-login.5
[...]

What exactly are you doing?

<!-- gh-comment-id:263124037 --> @netblue30 commented on GitHub (Nov 27, 2016): Seems to be working fine for me, I can access .gitignore file: ````` $ firejail --profile=/etc/firejail/atom.profile /bin/bash Reading profile /etc/firejail/atom.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc Parent pid 31080, child pid 31081 Child process initialized [netblue@debian firejail]$ cat .gitignore *.o *.so *~ *.swp *.rpm *.gcda *.gcno Makefile config.log config.status firejail-login.5 [...] ````` What exactly are you doing?
Author
Owner

@raffomania commented on GitHub (Nov 28, 2016):

Example .gitignore:

test.txt

in a folder with test.txt and .gitignore present, I start atom with the firejail profile, making sure that Settings->Packages->tree-view->Hide VCS Ignored Files is enabled. Atom shouldn't show test.txt in the sidebar, but still does.

update: Atom seems to be using libgit2 to check for ignored files (see this method in the git-modules npm package). I'm not sure, but maybe libgit2 fails somewhere along the way.

<!-- gh-comment-id:263234198 --> @raffomania commented on GitHub (Nov 28, 2016): Example `.gitignore`: test.txt in a folder with `test.txt` and `.gitignore` present, I start atom with the firejail profile, making sure that `Settings->Packages->tree-view->Hide VCS Ignored Files` is enabled. Atom shouldn't show `test.txt` in the sidebar, but still does. update: Atom seems to be using libgit2 to check for ignored files (see [this method in the git-modules npm package](https://github.com/atom/git-utils/blob/7c6c2fd5650233d0e5d4bdee80f04f574ed5ff83/src/repository.cc#L224)). I'm not sure, but maybe libgit2 fails somewhere along the way.
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#637
No description provided.