rtkay123 / mirro-rs

An Arch Linux mirrorlist manager with a TUI
Apache License 2.0
85 stars 1 forks source link

Using ~ for home in outfile parameter of configuration file will parse unexpectedly #219

Open skyleo opened 2 months ago

skyleo commented 2 months ago

Describe the bug Using ~ in path for outfile parameter in your configuration file will not be parsed as expected. Instead a folder called '~' will be created starting from the home directory.

To Reproduce Steps to reproduce the behavior:

  1. Write outfile = "~/mirrorlist" under [general] in your configuration file
  2. Execute mirro-rs
  3. Export mirrorlist
  4. mirrorlist will be exported to /home/user/~/mirrorlist

Expected behavior Mirrorlist should be exported to /home/user/mirrorlist

Desktop (please complete the following information):

rtkay123 commented 1 month ago

May you give this branch a test: fix/tilde. PR is linked