question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

making backup doesnt support all linux config paths

See original GitHub issue

Descibe the bug

If alacritty config file is not $HOME/.config/alacritty/alacritty.yml, (in my case it is $HOME/.alacritty.yml) it will throw an error

Steps to reproduce

  1. Installation:
    • installed using npm i -g alacritty-themes
  2. Running:
    • just ran alacritty-themes

Expected Behavior

Running normally, without errors

Operating System

Arch Linux (Manjaro)

Screenshots

alac-bug

I’ve looked around the source code a bit. Looks like the problem is from createBackup function. On Linux, when it checks if the config exist, it will check both $HOME/.config/alacritty/alacritty.yml and $HOME/.alacritty.yml. But when it creates a backup file it will always use $HOME/.config/alacritty/alacritty.yml

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
JuanVqzcommented, Aug 2, 2022

a quick and good solution could be, even if the alacritty.yml file is in the $HOME directory we will create the backups files in this path $HOME/.config/alacritty/

1reaction
aigic8commented, Aug 2, 2022

Thanks! But as you said, creating backup files in home direcotry is not really a neat solution. I think fixing this bug needs an oponionated solution which is beyond me.🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 Linux directories you must back up and one you shouldn't
This article guides you as to what you should and should not include in your backups.
Read more >
A Complete Guide to Linux Config Files | CBT Nuggets
You see, editing Linux configuration files can be a long, monotonous task, but it's a process that every Linux admin must learn. Luckily,...
Read more >
Change default database file and backup paths in SQL Server ...
In this article, we will view the process to change the default database files and backup locations in SQL Server on Linux.
Read more >
How To Backup of Config Files Periodically without Panorama
Download and extract CURL to a folder. If the CURL command should be accessible universally, then add the extract CURL folder to PATH...
Read more >
How to set up backups - torsion.org projects
If you'd like to specify an alternate configuration file path, use the --config flag. See borgmatic --help and borgmatic create --help for more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found