New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snap install trying to access '/etc/gitconfig' #90
Comments
|
That's odd. mdless attempts to read the GIT_PAGER variable using `git
config --get-all core.pager`, but it never tries to open the config file
directly.
…On 27 Sep 2023, at 2:38, ca-wvestjens wrote:
My install through Snap on Ubuntu is trying to access
`/etc/gitconfig`, but I guess it's not allowed because of the snap
sandbox.
```
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
snap 2.60.3
snapd 2.60.3
series 16
ubuntu 22.04
kernel 6.2.0-32-generic
```
```
$ mdless README.md
warning: unable to access '/etc/gitconfig': Permission denied
warning: unable to access '/etc/gitconfig': Permission denied
```
--
Reply to this email directly or view it on GitHub:
#90
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
|
Can I offer anything in regards to further debug data or information to help figure out what's happening? I've already set the |
|
I'll be honest, I don't even know what Snap is or I might have sonme
better debugging tips...
…On 28 Sep 2023, at 2:23, ca-wvestjens wrote:
Can I offer anything in regards to further debug data or information
to help figure out what's happening? I've already set the `$GIT_PAGER`
and `$PAGER` variables in my environment/shell, however I think Snap
doesn't use these.
--
Reply to this email directly or view it on GitHub:
#90 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
|
Snap is an app store for Linux, see: https://snapcraft.io/ There is an 'app' for mdless there: https://snapcraft.io/mdless I should note by the way, one of my colleagues recommended this program, he also has it installed through snap and he doesn't have this error. |
|
What happens if you run `git config --get-all core.pager` on the command
line? And would it be possible to just use `gem install mdless` instead
of Snap?
…-Brett
On 28 Sep 2023, at 6:45, ca-wvestjens wrote:
Snap is an app store for Linux, see: https://snapcraft.io/
Snap has specific security policies and sandboxing in place, I'm
guessing this is why it doesn't work:
https://snapcraft.io/docs/security-sandboxing
There is an 'app' for mdless there: https://snapcraft.io/mdless
--
Reply to this email directly or view it on GitHub:
#90 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
|
In my regular shell (ZSH), it exits with code 0 and returns no output. I guess we found the cause, now for a fix... Furthermore, I tried some variations of the I can try the Gem and it'll probably work because it's not sandboxed, but I'm not sure if you want the snap version fixed, since it'll give you more reach for your (cool and beautiful!) tool. Let me know if you can do anything with this new info. |
|
I've stopped using the git pager for mdless because it's often something like Delta or a pretty-print utility that messes with mdless formatting. Closing this for now. |
My install through Snap on Ubuntu is trying to access
/etc/gitconfig, but I guess it's not allowed because of the snap sandbox.The text was updated successfully, but these errors were encountered: