Mercurial > dotfiles
comparison install.py @ 470:3b9394a0a58b
Add qutebrowser config.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 09 Apr 2019 18:58:39 -0700 |
parents | 1172b8484c68 |
children | 31079b060068 |
comparison
equal
deleted
inserted
replaced
469:07ee0d517d92 | 470:3b9394a0a58b |
---|---|
255 writelines(cfgname, [ | 255 writelines(cfgname, [ |
256 'source %s' % _p('tridactyl/tridactylrc') | 256 'source %s' % _p('tridactyl/tridactylrc') |
257 ]) | 257 ]) |
258 | 258 |
259 | 259 |
260 def install_qutebrowser(): | |
261 if is_mac: | |
262 config_dir = '~/.qutebrowser' | |
263 elif is_windows: | |
264 config_dir = '%s/qutebrowser/' % os.getenv('APPDATA') | |
265 else: | |
266 config_dir = '~/.config/qutebrowser' | |
267 | |
268 mklink('qutebrowser', config_dir) | |
269 | |
270 | |
260 def _on_error_try_make_readable(func, path, exc_info): | 271 def _on_error_try_make_readable(func, path, exc_info): |
261 if not os.access(path, os.W_OK): | 272 if not os.access(path, os.W_OK): |
262 os.chmod(path, stat.S_IWUSR) | 273 os.chmod(path, stat.S_IWUSR) |
263 func(path) | 274 func(path) |
264 else: | 275 else: |