glow icon indicating copy to clipboard operation
glow copied to clipboard

missing permission to ~/.config for snap release

Open MartinMSPedersen opened this issue 6 months ago • 1 comments

The snap version of glow doesn't have permission to write to the users .config directory. And if the user create the directory, then glow stills needs to be able to create/update the config-file.

$  snap list glow
Name  Version  Rev  Tracking       Publisher      Notes
glow  2.1.1    90   latest/stable  charmbracelet  -
$ glow typer.md 
2025/08/21 12:06:50 ERRO Could not create default configuration error="unable create directory: mkdir /home/tusk/.config/glow: permission denied"
mkdir ~/.config/glow
$ glow typer.md 
2025/08/21 12:12:52 ERRO Could not create default configuration error="unable to create config file: open /home/tusk/.config/glow/glow.yml: permission denied"

Setup

  • Ubuntu 25.04
  • GNU bash, version 5.2.37(1)
  • xfce4-terminal 1.1.4 (Xfce 4.20)

MartinMSPedersen avatar Aug 21 '25 10:08 MartinMSPedersen

Same here.

$ sudo snap install glow
glow 2.1.1 from Charm (charmbracelet) installed

With a README.md file in current folder:

$ glow README.md 
Error: unable to open file: open README.md: no such file or directory

Trying to edit config:

$ glow config
Error: unable to set config file: Did you install with Snap? Glow is sandboxed and unable to open an editor. Please install Glow with Go or another package manager to enable editing.

I tried a snap install with the"--classic" flag, but same error.

Setup

  • Ubuntu 24.04
  • zsh 5.9

JBBailly avatar Sep 24 '25 09:09 JBBailly