forge
Explore
Log in

Don't you dare go Hollow

Add .stowrc, link mimeapps.list by absolute path

Browse files at this commit

da71d0fcdcb585b5f1a43da9e5330fb76bfdc8b8Ahmet Kaan GümüşParent: 16d3421
  • chore
    • add .stowrc, link mimeapps.list by absolute path
Show full message
🔧 chore(stow): add .stowrc, link mimeapps.list by absolute path

GLib writes mimeapps.list through a relative symlink by resolving the target
against the process's cwd, so default-app changes failed outside ~/.config.
mimeapps.list is now an absolute symlink created by hand, which stow does not
own, so .stowrc ignores it (and itself) and sets the target to ~.
.stowrcadded+3 -0
@@ -0,0 +1,3 @@
1+--target=~
2+--ignore=\.stowrc
3+--ignore=mimeapps\.list
README.mdmodified+11 -0
@@ -1 +1,12 @@
1 # dotfiles1 # dotfiles
2+
3+```sh
4+git clone https://git.tahinli.com/Tahinli/dotfiles ~/dotfiles
5+cd ~/dotfiles && stow .
6+ln -sfn ~/dotfiles/.config/mimeapps.list ~/.config/mimeapps.list
7+```
8+
9+`mimeapps.list` is linked by hand with an absolute path, and `.stowrc` keeps
10+stow away from it. GLib resolves a relative symlink target against the
11+writing process's working directory, so stow's `../dotfiles/...` link made
12+every "set default app" fail outside `~/.config`.